$di
$di :
Properties
A view container, store all views per region, render at will.
add(string $template, array $data = array(), string $region = 'main', integer $sort) : $this
Add a view to be included as a template file.
| string | $template | the name of the template file to include |
| array | $data | variables to make available to the view, default is empty |
| string | $region | which region to attach the view |
| integer | $sort | which order to display the views |
addCallback(string $callback, array $data = array(), string $region = 'main', integer $sort) : $this
Add a callback to be rendered as a view.
| string | $callback | function to call to get the content of the view |
| array | $data | variables to make available to the view, default is empty |
| string | $region | which region to attach the view |
| integer | $sort | which order to display the views |