Zend_Layout has a variety of configuration options. These
may be set by calling the appropriate accessors, passing an array or
Zend_Config object to the constructor or
startMvc(), passing an array of options to
setOptions(), or passing a Zend_Config
object to setConfig().
layout: the layout to use. Uses the current inflector to resolve the name provided to the appropriate layout view script. By default, this value is 'layout' and resolves to 'layout.phtml'. Accessors are
setLayout()andgetLayout().layoutPath: the base path to layout view scripts. Accessors are
setLayoutPath()andgetLayoutPath().contentKey: the layout variable used for default content (when used with the MVC). Default value is 'content'. Accessors are
setContentKey()andgetContentKey().mvcSuccessfulActionOnly: when using the MVC, if an action throws an exception and this flag is
TRUE, the layout will not be rendered (this is to prevent double-rendering of the layout when the ErrorHandler plugin is in use). By default, the flat isTRUE. Accessors aresetMvcSuccessfulActionOnly()andgetMvcSuccessfulActionOnly().view: the view object to use when rendering. When used with the MVC,
Zend_Layoutwill attempt to use the view object registered with the ViewRenderer if no view object has been passed to it explicitly. Accessors aresetView()andgetView().helperClass: the action helper class to use when using
Zend_Layoutwith the MVC components. By default, this isZend_Layout_Controller_Action_Helper_Layout. Accessors aresetHelperClass()andgetHelperClass().pluginClass: the front controller plugin class to use when using
Zend_Layoutwith the MVC components. By default, this isZend_Layout_Controller_Plugin_Layout. Accessors aresetPluginClass()andgetPluginClass().inflector: the inflector to use when resolving layout names to layout view script paths; see the
Zend_Layoutinflector documentation for more details. Accessors aresetInflector()andgetInflector().
helperClass and pluginClass must be passed to startMvc()
In order for the helperClass and
pluginClass settings to have effect, they must be
passed in as options to startMvc(); if set later, they
have no affect.




