—package
Ado::Control::Default;
##no critic (ProhibitBuiltinHomonyms)
sub
index
{
my
$c
=
shift
;
$c
->render(
layout
=>
'default'
);
return
;
}
sub
form {
my
$c
=
shift
;
$c
->render(
text
=> __PACKAGE__ .
'::form'
,
layout
=>
'default'
);
return
;
}
1;
=pod
=encoding utf8
=head1 NAME
Ado::Control::Ado::Default - The default controller for the site.
=head1 SYNOPSIS
#in your browser go to
#or
#or
=head1 DESCRIPTION
Ado::Control::Default is the default controller class.
=head1 ATTRIBUTES
Ado::Control::Default inherits all the attributes from
<Ado::Control> and defines the following ones.
=head1 METHODS/ACTIONS
L<Ado::Control::Default> inherits all the methods from
L<Ado::Control> and defines the following ones.
=head2 index
C<index> is the default action.
=head2 form
The form action.
=head1 SPONSORS
The original author
=head1 SEE ALSO
L<Ado::Control::Ado>,
L<Ado::Control>, L<Mojolicious::Controller>, L<Mojolicious::Guides::Growing/Model_View_Controller>,
L<Mojolicious::Guides::Growing/Controller_class>
=head1 AUTHOR
Красимир Беров (Krasimir Berov)
=head1 COPYRIGHT AND LICENSE
Copyright 2013-2014 Красимир Беров (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.
=cut