[Catalyst] Literal controller
Wade.Stuart at fallon.com
Wade.Stuart at fallon.com
Thu Dec 1 01:03:00 CET 2005
catalyst-bounces at lists.rawmode.org wrote on 11/30/2005 05:40:32 PM:
> No answer?
>
> At least, can anybody tell me how to process root path '/' in my
> Controller? Or it is impossible?
>
Ugly , there has to be a better way:
sub default : Private {
my ($self, $c) = @_;
$c->forward('indexpage') && return 1 if ($c->req->path eq "");
$c->res->redirect('/catchall');
}
sub indexpage : Private {
my ($self, $c) = @_;
$c->stash->{template} = "index.xhtml";
}
> --
> Maxim Nechaev
>
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
More information about the Catalyst
mailing list