MojoMojo::Controller::Root.3pm

Langue: en

Version: 2010-05-23 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

MojoMojo::Controller::Root - Controller to run before all others

ACTIONS

begin (builtin)

TODO

default (global)

Default action - display the error page (message.tt), for example when a nonexistent action was requested (like "/parent_page/child_page.fireworks").

set_lang

(Re)set language of current session.

render

Finally, use ActionClass RenderView to render the content.

end (builtin)

At the end of any request, forward to view unless there is a template or response, then render the template. If param 'die' is passed, show a debug screen.

auto

Runs for all requests, checks if user is in need of validation, and intercepts the request if so.

exit

A way to exit from MojoMojo. Useful when testing leaks.

AUTHOR

Marcus Ramberg <mramberg@cpan.org>

LICENSE

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.