Class View
A view.
- ICanBoogie\View\View implements ArrayAccess, JsonSerializable uses ICanBoogie\Accessor\AccessorTrait (not available)
Methods summary
protected
ICanBoogie\Routing\Controller
|
|
protected
ICanBoogie\Render\Renderer
|
|
protected
array
|
|
protected
mixed
|
|
protected
|
|
protected
string|null
|
|
protected
string
|
|
public
|
#
__construct( ICanBoogie\Routing\Controller $controller, ICanBoogie\Render\Renderer $renderer )
An event hook is attached to the |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
string|false
|
#
resolve_template( string $name, string $prefix, array & $tried = [] )
Resolve a template pathname from its name and type. |
public
|
|
protected
string
|
|
public
string
|
|
public
string
|
|
protected
|
Constants summary
integer |
TEMPLATE_TYPE_VIEW
|
#
1
|
integer |
TEMPLATE_TYPE_LAYOUT
|
#
2
|
integer |
TEMPLATE_TYPE_PARTIAL
|
#
3
|
string |
TEMPLATE_PREFIX_VIEW
|
#
''
|
string |
TEMPLATE_PREFIX_LAYOUT
|
#
'@'
|
string |
TEMPLATE_PREFIX_PARTIAL
|
#
'_'
|
Properties summary
Magic properties
public
mixed
|
$content
The content of the view. |
public
string
|
$layout
The name of the layout that should decorate the content. |
public
string
|
$template
The name of the template that should render the content. |
public read-only
ICanBoogie\Routing\Controller
|
$controller
The controller invoking the view. |
public read-only
ICanBoogie\Render\Renderer
|
$renderer
The controller invoking the view. |
public read-only
array
|
$variables
The variables to pass to the template. |
public read-only
callable[]
|
$layout_resolvers
@internal |
public read-only
callable[]
|
$template_resolvers
@internal |