diff options
author | castaway <castaway@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-08-17 15:51:43 +0000 |
---|---|---|
committer | castaway <castaway@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2008-08-17 15:51:43 +0000 |
commit | f1cd5548dac21719deb3412fbc5d8dadb9338cc3 (patch) | |
tree | ac9450f31f8b6b6477cd8ad2c60e4ba5dd72eddc /lib/Reaction/UI/Controller/Root.pm | |
parent | d325256fd72c7a7c0af45e860f6d8d510b4682f2 (diff) | |
download | reaction-f1cd5548dac21719deb3412fbc5d8dadb9338cc3.tar.gz reaction-f1cd5548dac21719deb3412fbc5d8dadb9338cc3.zip |
Much documentation updates
Diffstat (limited to 'lib/Reaction/UI/Controller/Root.pm')
-rw-r--r-- | lib/Reaction/UI/Controller/Root.pm | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/lib/Reaction/UI/Controller/Root.pm b/lib/Reaction/UI/Controller/Root.pm index e143bc1..7ab40b4 100644 --- a/lib/Reaction/UI/Controller/Root.pm +++ b/lib/Reaction/UI/Controller/Root.pm @@ -67,7 +67,7 @@ Reaction::UI::Controller::Root - Base component for the Root Controller ); # Create UI elements: - $c->stash->{focus_stack}->push_viewport('Reaction::UI::ViewPort'); + $c->self->push_viewport('Reaction::UI::ViewPort', %args); # Access the window title in a template: [% window.title %] @@ -80,12 +80,12 @@ object containing an empty L<Reaction::UI::FocusStack> for your UI elements. The stack is also resolved and rendered for you in the C<end> action. -At the C<begin> of each request, a L<Reaction::UI::Window> object is +At the C<begin> of each request, the Window object is created using the configured L</view_name>, L</content_type> and L</window_title>. These thus should be directly changed on the stashed window object at runtime, if needed. -=head1 METHODS +=head1 ATTRIBUTES =head2 view_name @@ -120,6 +120,33 @@ by a call to config or in a config file. Defaults to 'text/html'. Set or retrieve the title of the page created. Can also be set by a call to config or in a config file. No default. +=head1 ACTIONS + +=head2 begin + +Stuffs a new L<Reaction::UI::Window> object into the stash, using the +L</view_name> and L</content_type> provided in the +L<configuration|/SYNOPSIS>. + +Make sure you call this base C<begin> action if writing your own. + +=head2 end + +Draws the UI via the L<Reaction::UI::Window/flush> method. + +=head1 METHODS + +=head2 error_404 + +Sets $c->res (the L<Catalyst::Response>) body, status and content type +to output a 404 (File not found) error. + +=head2 error_403 + +Sets $c->res (the L<Catalyst::Response>) body, status and content type +to output a 403 (Forbidden) error. + + =head1 AUTHORS See L<Reaction::Class> for authors. |