library\App\View
Implementation of a layout system similar to what other frameworks have.
Extends \Zend\View\Renderer\RendererInterface for interoperability with Zend_View.
- 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 View
extends View
implements
RendererInterface
{
- // members
- protected array $_helperCache = ;
- protected HelperPluginManager $_helperManager = ;
- // methods
- public void __construct()
- public Layout getEngine()
- public string render()
- public Layout setResolver()
- public string partial()
- public mixed __call()
Hierarchy
Extends
- Slim\View
Implements
- Zend\View\Renderer\RendererInterface
Members
protected
- $_helperCache
—
array
Local view helper cache. - $_helperManager
—
\Zend\View\HelperPluginManager
View helper manager.
Methods
public
- __construct() — Class constructor.
- __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.