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

Christopher Heschong chris at wiw.org
Thu Jun 9 20:37:39 CEST 2005


...

>> The problem is, when I forward over to error, it does its work and
>> then
>> comes back and finishes processing foo, setting the template to
>> 'foo.xhtml'.  Is there something like forward that doesn't come
>> back?  I
>> know there is $c->redirect but if I'm not mistaken that sends an HTTP
>> redirect, which isn't exactly what I was hoping for.
>
> *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...





More information about the Catalyst mailing list