View
class View implements ArrayAccess, View (View source)
Methods
Create a new view instance.
Get the string contents of the view.
Get the sections of the rendered view.
Add a piece of data to the view.
Add a view instance to the view data.
Get the view factory instance.
Get the view's rendering engine.
Get the name of the view.
Get the name of the view.
Get the array of view data.
Get the path to the view file.
Set the path to the view.
Determine if a piece of data is bound.
Get a piece of bound data to the view.
Set a piece of data on the view.
Unset a piece of data from the view.
Get a piece of data from the view.
Set a piece of data on the view.
Check if a piece of data is bound to the view.
Remove a piece of bound data from the view.
Get the string contents of the view.
Details
at line line 64
void
__construct(
Factory $factory,
EngineInterface $engine,
string $view,
string $path,
mixed $data = array())
Create a new view instance.
at line line 177
$this
with(
string|array $key,
mixed $value = null)
Add a piece of data to the view.
at line line 196
$this
nest(
string $key,
string $view,
array $data = array())
Add a view instance to the view data.
at line line 207
$this
withErrors(
MessageProvider|array $provider)
Add validation errors to the view.