\Piko\View\ViewInterface
View interface.
Methods summary
Name | Description |
---|---|
public render |
Render the view. |
Methods
public render(): string
public render(string $file, array $model = []): string
Render the view.
Parameters
$file : The view file name.
$model (default: []): An array of data (name-value pairs) to transmit to the view.
Return:
string The view’s output.