1 package ComponentUI::Controller::Root;
5 use base 'Reaction::UI::Controller::Root';
8 use aliased 'Reaction::UI::ViewPort';
11 # Sets the actions in this controller to be registered with no prefix
12 # so they function identically to actions created in MyApp.pm
16 window_title => 'Reaction Test App',
20 sub base :Chained('/') :PathPart('') :CaptureArgs(0) {
22 $self->push_viewport(ViewPort, layout => 'layout');
25 sub root :Chained('base') :PathPart('') :Args(0) {
27 $self->push_viewport(ViewPort, layout => 'index');
30 sub static :Chained('base') :PathPart('static') :Args {
31 my ($self, $c, @args) = @_;
32 return if $c->stash->{window}->view->serve_static_file($c, \@args);
33 $c->forward('error_404');
36 sub error_404 :Private {
38 $c->res->body("Error 404");