diff options
author | phaylon <phaylon@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-03-24 20:13:59 +0000 |
---|---|---|
committer | phaylon <phaylon@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-03-24 20:13:59 +0000 |
commit | 5cf80e4b426f61e49672e0d1e74074eb4bc1ef76 (patch) | |
tree | b4b4cbd558a8fd68836f01d25c9ae5c0081e1fd0 /lib/Reaction/UI/Controller.pm | |
parent | e9b26da6228562ec9fdb3a53a620e4614af639b5 (diff) | |
parent | 63bb30b44346800078dc638dcc484828d89c2ad4 (diff) | |
download | reaction-5cf80e4b426f61e49672e0d1e74074eb4bc1ef76.tar.gz reaction-5cf80e4b426f61e49672e0d1e74074eb4bc1ef76.zip |
r2990@gomorrah (orig r1037): phaylon | 2009-02-09 21:25:06 +0100
documentation update, some api docs, overview and tutorial upto first DM and IM including CRUD
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 56e5b2d..91da998 100644 --- a/lib/Reaction/UI/Controller.pm +++ b/lib/Reaction/UI/Controller.pm @@ -94,7 +94,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 |