[Catalyst] logging in - redirecting

Juan Miguel Paredes juan.paredes at gmail.com
Tue Dec 26 21:24:01 GMT 2006


Hi, Octavian...

> sub end : Private {
> my ( $self, $c ) = @_;
> $c->forward( $c->view('TT'));
> }
>
> sub end : ActionClass('RenderView') {}
>

Doesn't it sound like a deja-vu somewhere? :)

Also, maybe you would like something as:

sub end : ActionClass('RenderView') {
  $c->forward( $c->view('TT') ) unless $c->response->body; #note the unless
}

since you're specifying some $c->response->body for debug in some
cases, preventing this way from forwarding to template-toolkit view.

Greetings!



More information about the Catalyst mailing list