Class ControllerSimple

Description

A simple class method based controller

This class acts a a controller for the application interface. It directly maps request paths to class methods, so it is the most simple variant available. Multi level paths are converted using underscores. Ex: "/testing/edit/title" maps to "Class::testing_edit_title".

To use this controller, use the following run-statement in your application.xml:

  1. <sat:run matchPath="/*" class="ControllerSimple" method="run">
  2. <cfg:config>
  3. <cfg:var name="class" value="someClass" />
  4. </cfg:config>
  5. </sat:run>
( Replace "someClass" by the class you want to access using this controllerd )

Located in /phpsatk-lib/global/org.eenterphace.sat.controller.simple/controller.simple.php (line 49)


	
			
Method Summary
void run (Request $request)
Methods
run (line 59)

Mapper function

When this function is called it determines the right method to use and calls it.

  • access: public
  • static:
void run (Request $request)
  • Request $request: Request object to be passed

Documentation generated on Mon, 21 May 2007 10:34:49 +0200 by phpDocumentor 1.3.0RC5