1 package TestApp::Controller::Root;
5 use parent '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 TestApp::Controller::Root - Root Controller for TestApp
19 [enter your description here]
29 sub index :Path :Args(0) {
30 my ( $self, $c ) = @_;
33 $c->response->body( $c->welcome_message );
37 my ( $self, $c ) = @_;
38 $c->response->body( 'Page not found' );
39 $c->response->status(404);
45 $c->res->body("herro!!");
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.