Rechercher une page de manuel
MojoX::Controller.3pm
Langue: en
Version: 2010-08-12 (fedora - 01/12/10)
Section: 3 (Bibliothèques de fonctions)
NAME
MojoX::Controller - Controller Base ClassSYNOPSIS
use base 'MojoX::Controller';
DESCRIPTION
MojoX::Controller is an abstract controllers base class.METHODS
MojoX::Controller inherits all methods from Mojo::Base and implements the following new ones.render_exception
$c->render_exception($e);
Turn exception into output.
render_not_found
$c->render_not_found;
Default output.
stash
my $stash = $c->stash; my $foo = $c->stash('foo'); $c = $c->stash({foo => 'bar'}); $c = $c->stash(foo => 'bar');
Non persistent data storage and exchange.
$c->stash->{foo} = 'bar'; my $foo = $c->stash->{foo}; delete $c->stash->{foo};
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicious.org>.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre