ASP4::FormHandler - Base class for all form handlers
package my::handler; use strict; use warnings 'all'; use base 'ASP4::FormHandler'; # Import $Request, $Response, $Session, $Server, $Form, $Config, $Stash use vars __PACKAGE__->VARS; sub run { my ($self, $context) = @_; $Response->Write("Hello, World!"); } 1;# return true:
All ASP4 *.asp scripts and /handlers/* classes should inherit from ASP4::FormHandler.
/handlers/*
ASP4::FormHandler
Returns the list of variable names of the ASP4 intrinsic objects.
$Request $Response $Session $Server $Config $Form $Stash
Called before run - can be used to deny access or redirect elsewhere under special conditions.
run
Where most of your action is expected to occur.
Called after run, can be used
It's possible that some bugs have found their way into this release.
Use RT http://rt.cpan.org/NoAuth/Bugs.html?Dist=ASP4 to submit bug reports.
Please visit the ASP4 homepage at http://0x31337.org/code/ to see examples of ASP4 in action.
To install ASP4, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ASP4
CPAN shell
perl -MCPAN -e shell install ASP4
For more information on module installation, please visit the detailed CPAN module installation guide.