Custom Zend_Controller_Action class (formally)
Allows dispatching before and after events for each controller action
Located in /Core/Controller/Varien/Action.php (line 37)
Class | Description |
---|---|
Mage_Adminhtml_Controller_Action | Base adminhtml controller |
Mage_Core_Controller_Front_Action | Base front controller |
Mage_Install_Controller_Action | Magento |
Action list where need check enabled cookie
Currently used area
Action flags
for example used to disable rendering default layout
Whether layout is loaded
Real module name (like 'Mage_Module')
Whether the default title should be removed
Request object
Response object
Namespace for session.
Should be defined for proper working session.
Title parts to be rendered in the page head title
Constructor
Retrieve flag value
Retrieve full bane of current action current controller and current module
Inits layout messages by message storage(s), loading and adding messages to layout messages block
Load layout by handles(s)
Dispatches event after action
Dispatches event before action
Rendering layout
Setting flag value
Convert dates in array from localized to internal format
Convert dates with time in array from localized to internal format
Throw control to different action (control and module if was specified).
Get real module name (like 'Mage_Module')
Identify referer url via all accepted methods (HTTP_REFERER, regular or base64-encoded request param)
Inits layout messages by message storage(s), loading and adding messages to layout messages block
Check url to be used as internal
Declare headers and content file in responce for file download
Set redirect into response
Redirect to error page
Set referer url for redirect in responce
Redirect to success page
Set redirect url into response
Prepare titles in the 'head' layout block Supposed to work only in actions where layout is rendered Falls back to the default logic if there are no titles eventually
Support for controllers rewrites
Example of configuration: <global> <routers> <core_module> <rewrite> <core_controller> <to>new_route/new_controller</to> <override_actions>true</override_actions> <actions> <core_action><to>new_module/new_controller/new_action</core_action> </actions> <core_controller> </rewrite> </core_module> </routers> </global>
This will override:
Add an extra title to the end or one from the end, or remove all
Usage examples: $this->_title('foo')->_title('bar'); => bar / foo / <default title>
$this->_title()->_title('foo')->_title('bar'); => bar / foo
$this->_title('foo')->_title(false)->_title('bar'); bar / <default title>
Validate Form Key
Documentation generated on Fri, 11 Feb 2011 16:55:55 +0200 by phpDocumentor 1.4.3