View helper for retrieving layout object.
More...
|
| __invoke ($template=null) |
| Set layout template or retrieve "layout" view model.
|
|
| getLayout () |
| Get layout template.
|
|
| setTemplate ($template) |
| Set layout template.
|
|
| setView (Renderer $view) |
| Set the View object.
|
|
| getView () |
| Get the view object.
|
|
View helper for retrieving layout object.
__invoke |
( |
|
$template = null | ) |
|
Set layout template or retrieve "layout" view model.
If no arguments are given, grabs the "root" or "layout" view model. Otherwise, attempts to set the template for that view model.
- Parameters
-
- Returns
- Layout
Get layout template.
- Returns
- string
Get the root view model.
- Exceptions
-
Exception\RuntimeException | |
- Returns
- null|Model
Retrieve the view model helper.
- Returns
- ViewModel
Set layout template.
- Parameters
-
- Returns
- Layout