Apache2::PageKit

Apache2::PageKit is a MVCC web framework using mod_perl, XML and HTML::Template.
Download

Apache2::PageKit Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • T.J. Mather
  • Publisher web site:
  • http://search.cpan.org/~borisz/Apache2-PageKit-2.14_14/lib/Apache2/PageKit.pm

Apache2::PageKit Tags


Apache2::PageKit Description

Apache2::PageKit is a MVCC web framework using mod_perl, XML and HTML::Template. Apache2::PageKit is a MVCC web framework using mod_perl, XML and HTML::Template.SYNOPSISIn httpd.conf SetHandler perl-script PerlSetVar PKIT_ROOT /path/to/pagekit/files PerlSetVar PKIT_SERVER staging PerlHandler +Apache2::PageKit Apache2::PageKit->startup('/path/to/pagekit/files', 'staging'); In MyPageKit/Common.pm package MyPageKit::Common; use base 'Apache2::PageKit::Model'; sub pkit_dbi_connect { return DBI->connect("DBI:mysql:db","user","passwd"); } sub pkit_session_setup { my $model = shift; my $dbh = $model->dbh; return { session_lock_class => 'MySQL', session_store_class => 'MySQL', session_args => { Handle => $dbh, LockHandle => $dbh, }, }; } sub pkit_auth_credential { my ($model) = @_; # in this example, login and passwd are the names of the credential fields my $login = $model->input('login'); my $passwd = $model->input('passwd'); # create a session key # your code here......... return $ses_key; } sub pkit_auth_session_key { my ($model, $ses_key) = @_; # check whether $ses_key is valid, if so return user id in $user_id # your code here......... return $ok ? $user_id : undef; }PageKit is an mod_perl based application framework that uses HTML::Template and XML to separate code, design, and content. Includes session management, authentication, form validation, co-branding, and a content management system.Its goal is to solve all the common problems of web programming, and to make the creation and maintenance of dynamic web sites fast, easy and enjoyable.You have to write a module named MyPageKit::Common that inherits from Apache2::PageKit::Model and provides methods common across the site. For example, if you wish to support authentication, it must include the two methods pkit_auth_credential and pkit_auth_session_key.Requirements:· Perl Requirements: · Perl


Apache2::PageKit Related Software