Page controller is special controller that is able to map controller name and actions name with layout and template and automaticly display them.
This behaviour is present only when action has not provided any exit by itself (redirect to another page, render template and die etc)
Located in /environment/classes/controller/PageController.class.php (line 11)
Controller | --PageController
| Class | Description |
|---|---|
| ErrorController | Error controller is here to display critical errors to the user when system is unable to serve users requests (failed to connect to database, unknown controller etc) |
| FeedController | Feed controller is used to handle all feed related events - iCal, RSS etc |
| ApplicationController | Base application controller |
Construct controller
Add one or many helpers
Execute action
Get auto_render
Return helper / helpers array
Get layout
Return path of the layout file. File dnx throw exception
Get template
Return path of the template. If template dnx throw exception
Redirect. Params are same as get_url function
Redirect to referer. If referer is no valid this function will use $alternative URL
Redirect to URL
Render content... If template and/layout are NULL script will resolve their names based on controller name and action.
PageController::index will map with:
Assign content and render layout
Shortcut method for printing text and setting auto_render option
Set auto_render value
Set layout value
Set template value
Inherited From Controller
Controller::__construct()
Controller::execute()
Controller::forward()
Controller::getAction()
Controller::getControllerName()
Controller::getSystemControllerClass()
Controller::setAction()
Controller::setControllerName()
Controller::setSystemControllerClass()
Controller::validAction()
Documentation generated on Wed, 23 Jan 2008 01:58:59 +0000 by phpDocumentor 1.4.0