Commit | Line | Data |
7adfd53f |
1 | package ComponentUI::Controller::Root; |
2 | |
3 | use strict; |
4 | use warnings; |
5 | use base 'Reaction::UI::RootController'; |
6 | use Reaction::Class; |
7 | |
8 | use aliased 'Reaction::UI::ViewPort'; |
9 | |
10 | # |
11 | # Sets the actions in this controller to be registered with no prefix |
12 | # so they function identically to actions created in MyApp.pm |
13 | # |
14 | __PACKAGE__->config( |
15 | view_name => 'XHTML', |
16 | window_title => 'Reaction Test App', |
17 | content_type => 'text/html', |
18 | namespace => '', |
19 | ); |
20 | |
21 | sub base :Chained('/') :PathPart('') :CaptureArgs(0) { |
22 | my ($self, $c) = @_; |
23 | $self->push_viewport(ViewPort, layout => 'xhtml'); |
24 | } |
25 | |
26 | sub root :Chained('base') :PathPart('') :Args(0) { |
27 | my ($self, $c) = @_; |
28 | $self->push_viewport(ViewPort, layout => 'index'); |
29 | } |
30 | |
31 | 1; |