[Catalyst] accessing action methods in a TT view
Guillermo Roditi
groditi at gmail.com
Fri Jul 14 15:24:59 CEST 2006
why not just $c->forward?
On 7/13/06, Rodney Broom <rbroom+catalyst at rbroom.com> wrote:
>
> From: "Guillermo Roditi" <groditi at gmail.com>
>
> > whatabout $c->controller()
>
> That appears to work, thanks. The remaining cludge I've got in my code is
> carrying around the context. So far, I only need this for access to the
> stash. For intance, in my view:
>
> sub process {
> my $self = shift;
> my $c = shift;
> $self->{_app} = $c; # Save for $c->stash access later
> ...
> $self->NEXT::process($c, @_);
> }
>
> I'm sure this is a situation of me not having read enough docs. Though, it
> seems odd that the context object would get passed in if I could just say
> something simple like $self->context. Of course, I'd settle for
> $self->stash. :)
>
> ---
> Rodney Broom
>
>
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060714/0c8f3b0d/attachment.htm
More information about the Catalyst
mailing list