Re: [Catalyst] context object in TT

2007-03-15 Thread rahed
On 3/15/07, Bill Moseley <[EMAIL PROTECTED]> wrote: On Thu, Mar 15, 2007 at 06:00:33PM +, Adeola Awoyemi wrote: > > On 15 Mar 2007, at 17:01, rahed wrote: > > >[% c.config.name %] in the template, nothing is shown. > > I think this needs to be: > > [% Catalyst.config.name %] C::V::TT has: s

Re: [Catalyst] context object in TT

2007-03-15 Thread Bill Moseley
On Thu, Mar 15, 2007 at 06:00:33PM +, Adeola Awoyemi wrote: > > On 15 Mar 2007, at 17:01, rahed wrote: > > >[% c.config.name %] in the template, nothing is shown. > > I think this needs to be: > > [% Catalyst.config.name %] C::V::TT has: sub template_vars { my ( $self, $c ) = @_;

Re: [Catalyst] context object in TT

2007-03-15 Thread Adeola Awoyemi
On 15 Mar 2007, at 17:01, rahed wrote: [% c.config.name %] in the template, nothing is shown. I think this needs to be: [% Catalyst.config.name %] I call template like this: $c->stash->{template}->'books/view.tt2'; And this needs to be: $c->stash->{template} = 'books/view.tt2'; H

[Catalyst] context object in TT

2007-03-15 Thread rahed
Hello, I started with Catalyst and don't know why I cannot access the context object from Template Toolkit. All other data from db or from forms is rendered ok but when I do e.g. [% c.config.name %] in the template, nothing is shown. I call template like this: $c->stash->{template}->'books/vie