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!

_______________________________________________
List: Catalyst@lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/

Reply via email to