974. Class

974.1. Zend\View\Helper\Partial

Helper for rendering a template fragment in its own variable scope.

974.1.1. Methods

974.1.1.1. __invoke

__invoke()

Renders a template fragment within a variable scope distinct from the calling View object. It proxies to view’s render function

Parameters:
  • string|ModelInterface – Name of view script, or a view model
  • array|object – Variables to populate in the view
Return type:

string|Partial

Throws :

ExceptionRuntimeException

974.1.1.2. setObjectKey

setObjectKey()

Set object key

Parameters:string
Return type:Partial

974.1.1.3. getObjectKey

getObjectKey()

Retrieve object key

The objectKey is the variable to which an object in the iterator will be assigned.

Return type:null|string

Project Versions

Table Of Contents

Previous topic

973. Class

Next topic

975. Class

This Page