Radiate\View\View
Properties
$view
The view
protected string $view
$path
The view directory
protected string $path
$data
The view data
protected array $data
Methods
__construct
Create the view instance
public function __construct(string $view, string $path, array $data = []): void
Properties
$view
The view$path
The view path$data
The data to pass to the view
render
Get the string contents of the view.
public function render(): string
evaluatePath
Get the evaluated contents of the view at the given path.
protected function evaluatePath(string $__path, array $__data): string
Properties
$__path
The view path$__data
The data to pass to the view
__toString
Return the view.
public function __toString(): string