diff options
Diffstat (limited to 'lib/ComponentUI/Controller/Bar.pm')
-rw-r--r-- | lib/ComponentUI/Controller/Bar.pm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/ComponentUI/Controller/Bar.pm b/lib/ComponentUI/Controller/Bar.pm new file mode 100644 index 0000000..7f9d6c3 --- /dev/null +++ b/lib/ComponentUI/Controller/Bar.pm @@ -0,0 +1,17 @@ +package ComponentUI::Controller::Bar; + +use strict; +use warnings; +use base 'Reaction::UI::CRUDController'; +use Reaction::Class; + +__PACKAGE__->config( + model_base => 'TestDB', + model_name => 'Bar', + action => { base => { Chained => '/base', PathPart => 'bar' }, + list => { ViewPort => { layout => 'bar_list' } }, + update => { ViewPort => { layout => 'bar_form' } }, + create => { ViewPort => { layout => 'bar_form' } } }, +); + +1; |