[Catalyst] Another RFC. $c->call()

Marcus Ramberg marcus at thefeed.no
Thu Apr 13 21:06:38 CEST 2006


On 4/13/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
>
> Marcus Ramberg wrote:
> > On 4/13/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
> >> That would be the general idea, yes :)
> >>
> >> Bugger, everybody seems in favour. Does that mean I'm going to have to
> >> implement it?
> >
> > Would it also work like forward ?
> >
> > $c->action('/some/action'); # forwards to /some/action and sets
> $c->action ?
> >
> > If so I'm all for, and you get to implement it ;-)
>
> No, you'd do it in an auto() and then Catalyst would dispatch to
> /some/action
> instead of what it was originally going to dispatch to.



This does not match the common use case for this, imo. You usually want to
do something like
do_edit, and then forward / detach / call / whatever edit, and have Catalyst
act as if you called
edit from that point on.

--
With regards
Marcus Ramberg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060413/d7753a32/attachment.htm 


More information about the Catalyst mailing list