Rechercher une page de manuel
CGI::Maypole.3pm
Langue: en
Version: 2005-11-23 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
CGI::Maypole - CGI-based front-end to MaypoleSYNOPSIS
package BeerDB; use Maypole::Application;
## example beer.cgi:
#!/usr/bin/perl -w use strict; use BeerDB; BeerDB->run();
Now to access the beer database, type this URL into your browser: http://your.site/cgi-bin/beer.cgi/frontpage
NOTE: this Maypole frontend requires additional modules that won't be installed or included with Maypole. Please see below.
DESCRIPTION
This is a CGI platform driver for Maypole. Your application can inherit from CGI::Maypole directly, but it is recommended that you use Maypole::Application.This module requires CGI::Simple which you will have to install yourself via CPAN or manually.
METHODS
- run
- Call this from your CGI script to start the Maypole application.
Implementation
This class overrides a set of methods in the base Maypole class to provide it's functionality. See Maypole for these:- get_request
- parse_location
- parse_args
- redirect_request
- get_protocol
- send_output
- Generates output (using "collect_output") and prints it.
- collect_output
- Gathers headers and output together into a string and returns it.
Splitting this code out of "send_output" supports Maypole::HTTPD::Frontend.
- get_template_root
DEPENDANCIES
CGI::SimpleAUTHORS
Dave Ranney "dave@sialia.com"Simon Cozens "simon@cpan.org"
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre