diff options
Diffstat (limited to 'lib/Reaction/UI/Controller.pm')
-rw-r--r-- | lib/Reaction/UI/Controller.pm | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/lib/Reaction/UI/Controller.pm b/lib/Reaction/UI/Controller.pm index 45a85d8..6788b40 100644 --- a/lib/Reaction/UI/Controller.pm +++ b/lib/Reaction/UI/Controller.pm @@ -93,7 +93,26 @@ __END__; =head1 NAME -Reaction::UI::Controller +Reaction::UI::Controller - Reaction Base Controller Class + +=head1 SYNOPSIS + + package MyApp::Controller::Foo; + use strict; + use warnings; + use parent 'Reaction::UI::Controller'; + + use aliased 'Reaction::UI::ViewPort'; + + sub foo: Chained('/base') Args(0) { + my ($self, $ctx) = @_; + + $ctx->push_viewport(ViewPort, + layout => 'foo', + ); + } + + 1; =head1 DESCRIPTION |