[Catalyst] $c->forward and don't come back?

Sebastian Riedel sri at oook.de
Fri Jun 10 05:14:24 CEST 2005


Am 09.06.2005 um 20:36 schrieb Christopher Hicks:

> On Thu, 9 Jun 2005, Christopher Heschong wrote:
>
>>> *cough*
>>>
>>>      MyApp::M::CDBI::Table->retrieve($id) or return $c->forward
>>> ('error');
>>>
>>> --
>>> sebastian
>>>
>>
>> Doh, Thanks!  I'm letting my mental blocks trip me up again...
>>
>
> That was my initial reaction, but what if there's a chain of  
> forwards and you want to skip a few levels going back up?  That  
> seems like it would get messy.

Latest trunk has a experimental $c->detach() method which does  
exactly this... ;)

--
sebastian




More information about the Catalyst mailing list