|
Previous Class |
Solar_Controller_Page |
Next Page |
Solar_Controller_Page
Abstract page controller class.
Expects a directory structure similar to the following ...
Vendor/ # your vendor namespace
App/ # subdirectory for page controllers
Base/
Helper/ # shared helper classes
Layout/ # shared layout files
Locale/ # shared locale files
Model/ # shared model classes
View/ # shared view scripts
Example.php # an example app
Example/
Helper/ # helper classes specific to the app
...
Layout/ # layout files to override shared layouts
...
Locale/ # locale files
en_US.php
pt_BR.php
View/ # view scripts
_item.php # partial template
list.php # full template
edit.php # another full template
When you call fetch(), these intercept methods are run in the following order ...
_load() to load class properties from the fetch() URI specification
_preRun() before the first action
_preAction() before each action (including _forward()-ed actions)
... The action method itself runs here ...
_postAction() after each action
_postRun() after the last action, and before rendering
_render() to render the view and layout; this in its turn calls _setViewObject() and _renderView() for the view, then _setLayoutTemplates() and _renderLayout() for the layout.
Catalog
This class is part of the Solar_Controller package.
Inheritance:
- Solar_Base
- Solar_Controller_Page
Constants
None.
Public Properties
The Solar_Controller_Page class has no public properties; try the list of all properties.
Public Methods
These are all the public methods in the Solar_Controller_Page class.
You can also view the list of all public, protected, and private methods.
__construct()- Constructor.
__destruct()- Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
__get()- Try to force users to define what their view variables are.
__set()- Try to force users to define what their view variables are.
apiVersion()- Reports the API version for this class.
display()- Executes the requested action and displays its output.
dump()- Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
fetch()- Executes the requested action and returns its output with layout.
locale()- Looks up class-specific locale strings based on a key.
setFrontController()- Injects the front-controller object that invoked this page-controller.
Local
- Overview
- Constants
- Properties
- Methods
- __construct()
- __destruct()
- __get()
- __set()
- _addViewHelpers()
- _addViewTemplates()
- _exception()
- _exceptionDuringFetch()
- _forward()
- _forwardActionMethod()
- _getActionFormat()
- _getActionMethod()
- _getActionView()
- _info()
- _isProcess()
- _load()
- _postAction()
- _postRender()
- _postRun()
- _preAction()
- _preRender()
- _preRun()
- _query()
- _redirect()
- _redirectNoCache()
- _render()
- _renderLayout()
- _renderView()
- _setContentType()
- _setLayoutTemplates()
- _setViewObject()
- _setup()
- apiVersion()
- display()
- dump()
- fetch()
- locale()
- setFrontController()