[Catalyst] Best Practices - an application.
Kieren Diment
diment at gmail.com
Mon Sep 18 10:38:03 CEST 2006
On 18/09/06, mnichols at mojosoft.org <mnichols at mojosoft.org> wrote:
>
>
> sub default : Private {
> my ( $self, $c ) >
> # Hello World
> # $c->response->body( $c->welcome_message );
> $c->forward('View::TT');
>
> }
Don't forward to View::TT in your default action, that's for end : Private,
and doesn't need to be done at all if you're using
Catalyst::Plugin::DefaultEnd or RenderView.
You're getting the error because you haven't set a template in your action.
usually default is for 404 errors only - something like:
sub default : Private {
my ($self, $c) $c->res->status(404);
$c->res->body('404 not found');
# or maybe $c->stash->{template} }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060918/7fea2add/attachment.htm
More information about the Catalyst
mailing list