Class View
View
- momentphp\View uses momentphp\traits\ContainerTrait
public
|
#
__construct( Interop\Container\ContainerInterface $container, array $engine, string $engine,… )
Constructor |
public
|
#
set( mixed $name, mixed $value = null )
Save a variable or an associative array of variables for use inside a template |
public
|
|
public
string
|
|
public
boolean
|
|
protected
string
|
|
protected
string
|
|
public
mixed
|
container()
|
protected
array
|
$guarded
Guarded properties |
#
[
'viewEngine',
]
|
protected
string
|
$engine
The name of the service implementing \momentphp\interfaces\ViewEngineInterface |
|
protected
|
$viewEngine
View engine |
|
protected
string
|
$template
Template file to render |
|
protected
string
|
$templateFolder
Template folder |
|
protected
string
|
$bundle
Bundle alias (if template should be rendered out of specific bundle) |
|
protected
array
|
$vars
Variables for the template |
#
[]
|
protected
Psr\Http\Message\RequestInterface
|
$request
Request |
|
protected
Psr\Http\Message\ResponseInterface
|
$response
Response |
$app,
$container
|