[Catalyst] how to use catalyst config value.......
chveerendra nadh
chchveeru at gmail.com
Mon Feb 13 08:00:48 CET 2006
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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060213/2b2e16b1/attachment-0001.htm
More information about the Catalyst
mailing list