View Class
Aurora\Web\View Namespace
Properties
adapter
View Adapter
protected $adapter: \AdapterInterface
data
View data
protected $data = []: array
template
View template name
protected $template: string
Constructor
__construct
Constructor
Parameters
Aurora\Web\View\Adapter\AdapterInterface
$adapter
— View adapter
Signature
public function __construct(Aurora\Web\View\Adapter\AdapterInterface $adapter)
Methods
__construct
Constructor
Parameters
-
Aurora\Web\View\Adapter\AdapterInterface
$adapter
— View adapter
Signature
public function __construct(Aurora\Web\View\Adapter\AdapterInterface $adapter)
template
Set the view template
Parameters
-
string
$template
— Template name
Return Value
$this
Signature
public function template(string $template)
with
Add data to the template
Parameters
-
mixed
$name
— Data name or associative array with data -
mixed
$value
— Data value
Return Value
$this
Signature
public function with(mixed $name, mixed $value)
render
Render the view
Return Value
string
Signature
public function render(): string