\Anax\ViewViewRenderFileInterface

Render a view based on a template file and a dataset.

Summary

Methods
Constants
render()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

render()

render(string  $file, array  $data) : void

Render the view file and expose the data to it.

Parameters

string $file

to include as view file.

array $data

to expose within the view.

Throws

\Anax\View\Exception

when template file is not found.