NAME
Ado::Control - The base class for all controllers!
SYNOPSIS
It must be inherited by all controlers. Put code here only to be shared by it's subclasses or used in hooks.
package Ado::Control::Hello;
use Mojo::Base 'Ado::Control';
ATTRIBUTES
SUBROUTINES/METHODS
Methods shared among subclasses and in hooks
debug
A shortcut to:
$c->app->log->debug(@_);
config
Overwrites the default helper "config" in Mojolicious::Plugin::DefaultHelpers which is actually an alias for "config" in Mojo. Returns configuration specific to the current controller package only.
#in Ado::Control::List or Ado::Control::Foo or...
state $conf = $c->config();
...
To access the application configuration use $c->app->config('key')
.
SEE ALSO
Mojolicious::Controller, Ado::Manual::Controllers
AUTHOR
Красимир Беров (Krasimir Berov)
COPYRIGHT AND LICENSE
Copyright 2013 Красимир Беров (Krasimir Berov).
This program is free software, you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License v3 (LGPL-3.0). You may copy, distribute and modify the software provided that modifications are open source. However, software that includes the license may release under a different license.
See http://opensource.org/licenses/lgpl-3.0.html for more information.