]>
Dogcows Code - chaz/chatty/blob - lib/Chatty/Controller/Root.pm
1 package Chatty
::Controller
::Root
;
3 use namespace
::autoclean
;
5 BEGIN { extends
'Catalyst::Controller' }
8 # Sets the actions in this controller to be registered with no prefix
9 # so they function identically to actions created in MyApp.pm
11 __PACKAGE__-
>config(namespace
=> '');
15 Chatty::Controller::Root - Root Controller for Chatty
19 [enter your description here]
29 sub index :Path
:Args
(0) {
30 my ( $self, $c ) = @_;
33 $c->response->body( $c->welcome_message );
38 Standard 404 error page
43 my ( $self, $c ) = @_;
44 $c->response->body( 'Page not found' );
45 $c->response->status(404);
50 Attempt to render a view, if needed.
54 sub end
: ActionClass
('RenderView') {}
62 This library is free software. You can redistribute it and/or modify
63 it under the same terms as Perl itself.
67 __PACKAGE__-
>meta->make_immutable;
This page took 0.036294 seconds and 4 git commands to generate.