[Catalyst] $c->forward return stuff

Matt S Trout dbix-class at trout.me.uk
Wed May 10 16:59:43 CEST 2006


Perrin Harkins wrote:
> Yuval Kogman wrote:
>> We can't change that due to compatibility.
>>
>> In the future we may have a 'call' which is like forward only
>> without the eval and without the return value munging, so that you
>> can also return lists.
> 
> For now, you can avoid the issue by simply calling the method you want 
> directly, without forward().

Right. People seem to get hung on on forward() as the only way to pass 
$c around.

$c->controller('Foo')->bar($c);

often works just as well as $c->forward('/foo/bar');

:)



More information about the Catalyst mailing list