library\App\Layout
Layout system implementation.
- Author: Bogdan Ghervan <bogdan.ghervan@gmail.com>
- Copyright: 2014 Bogdan Ghervan
- License: http://opensource.org/licenses/Apache-2.0 Apache License 2.0
Synopsis
class Layout
extends View
{
- // members
- protected string $_layoutFile = 'layout.phtml';
- protected array $_vars = ;
- // Inherited members from View
- protected array $_helperCache;
- protected HelperPluginManager $_helperManager;
- // methods
- public string render()
- public Layout appendVar()
- protected string _getVarsForOutput()
- // Inherited methods from View
- public void __construct()
- public Layout getEngine()
- public string render()
- public Layout setResolver()
- public string partial()
- public mixed __call()
Hierarchy
Extends
Members
protected
- $_helperCache
—
array
Local view helper cache. - $_helperManager
—
\Zend\View\HelperPluginManager
View helper manager. - $_layoutFile
—
string
Layout file relative to the templates path. - $_vars
—
array
JavaScript variables registry.
Methods
protected
- _getVarsForOutput() — Returns aggregated variables to send to JavaScript, with values encoded in JSON.
public
- appendVar() — Push variable $name to JavaScript.
- render() — Renders template and injects it to the layout file.
Inherited from library\App\View
public
- __call() — Provides access to view helpers.
- getEngine() — Returns the template engine object.
- partial() — Renders template fragment in its own veriable scope.
- render() — Renders template and injects it to the layout file.
- setResolver() — Set the resolver used to map a template name to a resource the renderer may consume.