package Catty;
use strict;
+use warnings;
#use Catalyst;
use Catalyst;
}
}
+sub redirect_with_500 : Global {
+ my ( $self, $c ) = @_;
+ $DB::single = 1;
+ $c->res->redirect( $c->uri_for("/bonjour"));
+ die "erk!";
+}
+
sub die : Global {
my ( $self, $context ) = @_;
my $html = html( "Die", "This is the die page" );