[Catalyst] Re: $c->visit without calling end()

Bill Crawford billcrawford1970 at gmail.com
Mon Nov 15 17:26:55 GMT 2010


On 15 November 2010 16:56, Aristotle Pagaltzis <pagaltzis at gmx.de> wrote:
> * Bill Crawford <billcrawford1970 at gmail.com> [2010-11-15 14:20]:
>> On 13 November 2010 02:54, Bill Moseley <moseley at hank.org> wrote:
>> > Any tricks to do a $c->visit type of call but w/o doing
>> > a full dispatch, that is, without calling the auto and end
>> > actions?
>>
>> Doesn't $c->forward(...) do exactly that? Or have I completely
>> misunderstood the docs?
>
> No, `forward` does not do a full redispatch. Most importantly,
> if you’re using chains in your app, then `visit` will walk the
> entire chain to the action you passed and call those actions
> (as well as all the `begin` and `auto` actions along the way),
> while `forward` will only call the action itself.

Erm, he was asking for something that doesn't "do a full dispatch" ?



More information about the Catalyst mailing list