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

Christopher Hicks chicks at chicks.net
Thu Jun 9 20:36:18 CEST 2005


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.

-- 
</chris>

"There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)



More information about the Catalyst mailing list