Interface class for Zend\View\Renderer\* compatible template engine implementations

package Default

 Methods

Return the template engine object, if any

getEngine() : mixed

If using a third-party template engine, such as Smarty, patTemplate, phplib, etc, return the template engine object. Useful for calling methods on these objects, such as for setting filters, modifiers, etc.

Returns

mixed

Processes a view script and returns the output.

render(string|\Zend\View\Model\ModelInterface $nameOrModel, null|array|\ArrayAccess $values = null) : string

Parameters

$nameOrModel

string\Zend\View\Model\ModelInterface

The script/resource process, or a view model

$values

nullarray\ArrayAccess

Values to use during rendering

Returns

stringThe script output.

Set the resolver used to map a template name to a resource the renderer may consume.

setResolver(\Zend\View\Resolver\ResolverInterface $resolver) : \Zend\View\Renderer\RendererInterface

Parameters

$resolver

\Zend\View\Resolver\ResolverInterface

Returns

\Zend\View\Renderer\RendererInterface