|
Apache::App::Mercury::Controller - Example Controller class |
Apache::App::Mercury::Controller - Example Controller class
This is simply a skeleton class which illustrates how a controller should interact with Apache::App::Mercury. Please look at the code to see how it should contruct and initialize an Apache::App::Mercury object, run its main content handler, and then cleanup non-persistent instance variables on completion. It does not illustrate object persistence; not for difficulty reasons, simply for lack of time. I highly recommend Apache::Session.
The below instance variables and accessors are required in your controller class for Apache::App::Mercury to operate properly.
infomsg([$msg])pagetitle([$title])pagebody([$body])get_time()time() function.
This accessor is used for time synchronization throughout the application,
so your controller can keep a single time for each http request.
sitemark([$mark])
Adi Fairbank <adi@adiraj.org>
Copyright (c) 2003 - Adi Fairbank
This software (Apache::App::Mercury and all related Perl modules under the Apache::App::Mercury namespace) is copyright Adi Fairbank.
July 19, 2003
|
Apache::App::Mercury::Controller - Example Controller class |