Apache2::PageKit::Model - Base Model Class
This class provides a base class for the Modules implementing the backend business logic for your web site.
This module also contains a wrapper to Data::FormValidator. It validates the form data from the Apache2::Request object contained in the Apache2::PageKit object.
When deriving classes from Apache2::PageKit::Model, keep in mind that all methods and hash keys that begin with pkit_ are reserved for future use.
Method in derived class.
sub my_method { my $model = shift; # get database handle, session my $dbh = $model->dbh; my $session = $model->session; # get inputs (from request parameters) my $foo = $model->input('bar'); # do some processing ... # set outputs in template $model->output(result => $result); }
T.J. Mather (tjmather@anidea.com)
Boris Zentner (borisz@users.sourceforge.net)
Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005 AnIdea Corporation. All rights Reserved. PageKit is a trademark of AnIdea Corporation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Ricoh Source Code Public License for more details.
You can redistribute this module and/or modify it only under the terms of the Ricoh Source Code Public License.
You should have received a copy of the Ricoh Source Code Public License along with this program; if not, obtain one at http://www.pagekit.org/license
To install Apache2::ErrorReport, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::ErrorReport
CPAN shell
perl -MCPAN -e shell install Apache2::ErrorReport
For more information on module installation, please visit the detailed CPAN module installation guide.