Test Application
Home
View Layer examples
Some examples of controlling the view-layer using view models
Default rendering
Changing scripts:
No layout
Choose a different layout
Choose a different view script
Multiple view models:
Add an additional view model to layout
Multiple view models
Response:
Send a 501 response
Change the layout for every action within a module:
Simple module's index action
Simple module's another action
Different formats:
Send Json
Source code
The source code is on
GitHub
ViewController.php
View scripts
Layouts
Simple module's Module.php