Helper for rendering a template fragment in its own variable scope.
More...
|
| __invoke ($name=null, $values=null) |
| Renders a template fragment within a variable scope distinct from the calling View object.
|
|
| setObjectKey ($key) |
| Set object key.
|
|
| getObjectKey () |
| Retrieve object key.
|
|
| setView (Renderer $view) |
| Set the View object.
|
|
| getView () |
| Get the view object.
|
|
Helper for rendering a template fragment in its own variable scope.
__invoke |
( |
|
$name = null , |
|
|
|
$values = null |
|
) |
| |
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 | Name of view script, or a view model |
array | object | $values | Variables to populate in the view |
- Exceptions
-
Exception\RuntimeException | |
- Returns
- string|Partial
Retrieve object key.
The objectKey is the variable to which an object in the iterator will be assigned.
- Returns
- null|string
Set object key.
- Parameters
-
- Returns
- self