PHP Class library\App\View

Extends \Zend\View\Renderer\RendererInterface for interoperability with Zend_View.
Author: Bogdan Ghervan ([email protected])
Inheritance: extends Slim\View, implements Zend\View\Renderer\RendererInterface
Show file Open project: cronkeep/cronkeep Class Usage Examples

Protected Properties

Property Type Description
$_helperCache array Local view helper cache.
$_helperManager Zend\View\HelperPluginManager View helper manager.

Public Methods

Method Description
__call ( string $method, array $args ) : mixed Provides access to view helpers.
__construct ( ) : void Class constructor.
getEngine ( ) : Layout Returns the template engine object.
partial ( string $template, array $data = [] ) : string Renders template fragment in its own variable scope.
render ( string $template, array $data = null ) : string Renders template and injects it to the layout file.
setResolver ( Zend\View\Resolver\ResolverInterface $resolver ) : Layout Set the resolver used to map a template name to a resource the renderer may consume.
url ( string $path = null ) : string Generates a fully qualified URL to the given path.

Method Details

__call() public method

Provides access to view helpers.
public __call ( string $method, array $args ) : mixed
$method string
$args array
return mixed

__construct() public method

Initializes helper manager.
public __construct ( ) : void
return void

getEngine() public method

Returns the template engine object.
public getEngine ( ) : Layout
return Layout

partial() public method

Renders template fragment in its own variable scope.
public partial ( string $template, array $data = [] ) : string
$template string
$data array
return string

render() public method

Renders template and injects it to the layout file.
public render ( string $template, array $data = null ) : string
$template string
$data array
return string

setResolver() public method

Set the resolver used to map a template name to a resource the renderer may consume.
public setResolver ( Zend\View\Resolver\ResolverInterface $resolver ) : Layout
$resolver Zend\View\Resolver\ResolverInterface
return Layout

url() public method

Generates a fully qualified URL to the given path.
public url ( string $path = null ) : string
$path string
return string

Property Details

$_helperCache protected property

Local view helper cache.
protected array $_helperCache
return array

$_helperManager protected property

View helper manager.
protected HelperPluginManager,Zend\View $_helperManager
return Zend\View\HelperPluginManager