Interface class for Zend_View compatible template engine implementations

category Zend
package Zend_View
subpackage Renderer

 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

Get feed type

getFeedType() : string

Returns

string

Renders values as JSON

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

todo Determine what use case exists for accepting only $nameOrModel

Parameters

$nameOrModel

string\Zend\View\Model\ModelInterface

The script/resource process, or a view model

$values

nullarray\ArrayAccess

Values to use during rendering

Exceptions

\Zend\View\Exception\InvalidArgumentException

Returns

stringThe script output.

Set feed type ('rss' or 'atom')

setFeedType(string $feedType) : \Zend\View\Renderer\FeedRenderer

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\FeedRenderer

todo Determine use case for resolvers for feeds

Parameters

Returns

 Properties

 

<p>'rss' or 'atom'; defaults to 'rss'</p>

$feedType : string

 

$resolver

$resolver : \Zend\View\Resolver\ResolverInterface