NAME
ASP4::FormHandler - Base class for all form handlers
SYNOPSIS
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:
DESCRIPTION
All ASP4 *.asp scripts and /handlers/*
classes should inherit from ASP4::FormHandler
.
PROPERTIES
VARS
Returns the list of variable names of the ASP4 intrinsic objects.
$Request $Response
$Session $Server
$Config $Form
$Stash
METHODS
before_run( $self, $context )
Called before run
- can be used to deny access or redirect elsewhere under special conditions.
run( $self, $context )
Where most of your action is expected to occur.
after_run( $self, $context )
Called after run
, can be used