1 package NDWeb::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 NDWeb::Controller::Root - Root Controller for NDWeb
19 [enter your description here]
29 sub index : Local Path Args(0) {
30 my ( $self, $c ) = @_;
32 $c->stash(abc => $c->req->base);
36 my ( $self, $c ) = @_;
37 $c->res->body( 'Page not found' );
38 $c->response->status(404);
46 $c->stash(dbh => $dbh);
48 $c->stash->{game}->{tick} = $dbh->selectrow_array('SELECT tick()',undef);
54 Attempt to render a view, if needed.
58 sub end : ActionClass('RenderView') {}
66 This library is free software, you can redistribute it and/or modify
67 it under the same terms as Perl itself.