[Catalyst] how to use catalyst config value.......

apv apv at sedition.com
Mon Feb 13 20:36:28 CET 2006


I think you'd benefit from slowing down and reading most of the
pages linked here:
    http://search.cpan.org/dist/Catalyst/

And then try some searches for what you want here:
   http://dev.catalyst.perl.org/wiki/

Or search against:
     
http://www.google.com/ 
search?q=site%3Ahttp%3A%2F%2Flists.rawmode.org%2Fmailman%2Flistinfo%2Fca 
talyst

It seems like, from the examples you're giving, you're on
the wrong track for how to build things on top of Catalyst.
And the way you ask questions, as Matt mentioned, makes it
impossible to even know what you're after.

  http://perlmonks.org/?node=172086

-Ashley

On Sunday, February 12, 2006, at 11:00  PM, chveerendra nadh wrote:

> yes it like hard coding............... but how to use that
>
> in my conf.pm  our  $URI_BASE = " data  " ;
> in my application.pm     Shop::Config{uri_base}  = $URI_BASE;
> in my Template   [%c.config.uri_base%]
>
> then how could i use c.request.base
>
> Thanks
> Veeru
>
> On 2/13/06, apv <apv at sedition.com> wrote:
>
> You should probably take a look at a couple of other things too instead
> of what you're doing.
>
> c.request.base
>   # and
> c.uri_for('whatever')
>
> I don't know what your app is doing but there should never be a need
> for a hard coded base uri within Catalyst.
>
> -Ashley
>
> On Sunday, February 12, 2006, at 09:28  PM, chveerendra nadh wrote:
>
> > thanks...................amazing it's wroking
> >
> > On 2/13/06, Kieren Diment < diment at gmail.com> wrote:
> >
> > [% c.config.uri_base %]
> >
> > On 13/02/06, chveerendra nadh < chchveeru at gmail.com> wrote:
> >
> > hi to all
> >
> > i have bit problem................... if i want set config in
> > catalyst like this
> >
> > $URI_BASE =Zrush
> >
> > Shop->config->{uri_base} = $URI_BASE;
> >
> > how to use in template tool kit ................... can i use like
> > this [%config.uri_base%] it will be printed Zrush
> >
> >
> >
> > Thanks
> >
> > Veeru
> >
> >
> >
> >
> > _______________________________________________
> > Catalyst mailing list
> > Catalyst at lists.rawmode.org
> > http://lists.rawmode.org/mailman/listinfo/catalyst
> >
> >
> >
> >
> > _______________________________________________
> > Catalyst mailing list
> > Catalyst at lists.rawmode.org
> > http://lists.rawmode.org/mailman/listinfo/catalyst
> >
> >
> >
> > _______________________________________________
> > Catalyst mailing list
> > Catalyst at lists.rawmode.org
> > http://lists.rawmode.org/mailman/listinfo/catalyst
>
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst




More information about the Catalyst mailing list