Interface RendererInterface

Summary

Fully Qualified Name: Zend\View\Renderer\RendererInterface

Description

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

Methods

Name Description Defined By
getEngine() Return the template engine object, if any RendererInterface
render() Processes a view script and returns the output. RendererInterface
setResolver() Set the resolver used to map a template name to a resource the renderer may consume. RendererInterface

Method Details

getEngine()

Return the template engine object, if any

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

render()

Processes a view script and returns the output.

Parameter Name Type Description
$nameOrModel string|\ModelInterface The
$values null|array|\ArrayAccess Values

Returns: string The script output.

setResolver()

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

Parameter Name Type Description
$resolver \ResolverInterface

Returns: \RendererInterface

Top