[Catalyst] Reusing Cat Error visuals ?
Matt S Trout
dbix-class at trout.me.uk
Wed Jan 18 21:17:43 CET 2006
On Wed, Jan 18, 2006 at 09:53:52PM +0200, raptor wrote:
> hi,
>
> Is there a way to use the Cat default error template ?
> I put my own message with : $c->error('my message'), but how to redirect to the default error page/template, or it is not possible ?
Check $c->error in your 'end' action, do whatever you need to do, and call
$c->error(0) to tell Catalyst you've handled it yourself.
--
Matt S Trout Offering custom development, consultancy and support
Technical Director contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list