__construct()
__construct(string $basePath = '', string $suffix = '')
Initializes object
Parameters
string | $basePath | |
string | $suffix |
View Loader
This class loads View objects from a given file path.
load(string $path, array $data = array()) : \LiftKit\Response\View
Loads a file and constructs a View object from it.
string | $path | Path to file. Beware that this is not an absolute path if you set the basePath or suffix in the constructor. |
array | $data | An associative array of variables to be injected into the view. |