View script integration
Zend_Controller_Action_Helper_ViewRenderer provides transparent view integration for action controllers. It allows you to create a view object once, and populate it throughout all actions. Several global options may be set:
Usage:
Located in /Controller/Action/Helper/ViewRenderer.php (line 74)
Zend_Controller_Action_Helper_Abstract | --Zend_Controller_Action_Helper_ViewRenderer
Word delimiters
Inflector target
Current module directory
Whether or not to autorender using controller name as subdirectory;
global setting (not reset at next invocation)
Whether or not to autorender postDispatch; global setting (not reset at
next invocation)
Whether or not to use a controller name as a subdirectory when rendering
Whether or not to autorender postDispatch; per controller/action setting (reset
at next invocation)
Characters representing path delimiters in the controller
Which named segment of the response to utilize
Which action view script to render
View object basePath
View script path specification string, minus controller segment
View script path specification string
View script suffix
Inherited from Zend_Controller_Action_Helper_Abstract
Zend_Controller_Action_Helper_Abstract::$_actionController
Zend_Controller_Action_Helper_Abstract::$_frontController
Constructor
Optionally set view object and options.
Use this helper as a method; proxies to setRender()
Get current module name
Get module directory
Retrieve neverController flag value
Retrieve neverRender flag value
Retrieve noController flag value
Retrieve noRender flag value
Retrieve named response segment name
Retrieve view script name
Retrieve the current view basePath specification string
Get a view script based on an action and/or other variables
Uses values found in current request if no values passed in $vars.
If $_noController is set, uses $_viewScriptPathNoControllerSpec; otherwise, uses $_viewScriptPathSpec.
Retrieve the current view script path specification string (no controller variant)
Retrieve the current view script path specification string
Get view script suffix
init - initialize view
Initialize the view object
$options may contain the following keys:
postDispatch - auto render a view
Only autorenders if:
Render a view based on path specifications
Renders a view based on the view script path specifications.
Render a script based on specification variables
Pass an action, and one or more specification variables (view script suffix) to determine the view script path, and render that script.
Render a view script (optionally to a named response segment)
Sets the noRender flag to true when called.
Set inflector
Set the neverController flag (i.e., whether or not to render into controller subdirectories)
Set the neverRender flag (i.e., globally dis/enable autorendering)
Set the noController flag (i.e., whether or not to render into controller subdirectories)
Set the noRender flag (i.e., whether or not to autorender)
Set options for rendering a view script
Set the response segment name
Set the view script to use
Set view basePath specification
Specification can contain one or more of the following:
Set view script path specification (no controller variant)
Specification can contain one or more of the following:
Set view script path specification
Specification can contain one or more of the following:
Set view script suffix
Generate a class prefix for helper and filter classes
Retrieve base path based on location of current action controller
Get internal module directory representation
Set inflector target
Set internal module directory representation
Set options
Should the ViewRenderer render a view script?
Inflect based on provided vars
Allowed variables are:
Clone - also make sure the view is cloned.
Inherited From Zend_Controller_Action_Helper_Abstract
Zend_Controller_Action_Helper_Abstract::getActionController()
Zend_Controller_Action_Helper_Abstract::getFrontController()
Zend_Controller_Action_Helper_Abstract::getName()
Zend_Controller_Action_Helper_Abstract::getRequest()
Zend_Controller_Action_Helper_Abstract::getResponse()
Zend_Controller_Action_Helper_Abstract::init()
Zend_Controller_Action_Helper_Abstract::postDispatch()
Zend_Controller_Action_Helper_Abstract::preDispatch()
Zend_Controller_Action_Helper_Abstract::setActionController()
Documentation generated on Mon, 21 Jun 2010 15:52:09 -0400 by phpDocumentor 1.4.3