View
class View
View.
Properties
protected string | $path | View path. | |
protected array | $variables | View variables. | |
protected RendererInterface | $renderer | View renderer instance. |
Methods
array
getVariables()
Returns the assigned view variables.
getRenderer()
Returns the renderer instance.
string
render()
Returns the rendered view.
Details
at line 45
__construct(string $path, array $variables, RendererInterface $renderer)
Constructor.
at line 59
array
getVariables()
Returns the assigned view variables.
at line 69
RendererInterface
getRenderer()
Returns the renderer instance.
at line 81
View
assign(string $name, mixed $value)
Assign a local view variable.
at line 93
string
render()
Returns the rendered view.