|
| | load (string $template, array $data) |
| |
| | combineData (array $data, int $cacheData) |
| |
| | load (string $template, array $data) |
| |
|
| | __construct (Response $response, Logger $logger) |
| |
| | setTemplateExt (string $tplExt) |
| |
| | setTemplate (string $template) |
| |
| | setTemplateDir (string $templateDir) |
| |
| | render (array $data=[], int $return=self::TPL_OUTPUT, int $cacheData=self::TPL_CACHE_VARS) |
| |
| const | TPL_CACHE_VARS = 100 |
| |
|
const | TPL_USE_VARS_ONLY = 101 |
| |
|
const | TPL_NO_CACHE_VARS = 102 |
| |
| const | TPL_RETURN = 200 |
| |
|
const | TPL_OUTPUT = 201 |
| |
|
| $response = null |
| |
|
| $logger = null |
| |
|
| $tplExt = "" |
| |
|
| $template = "" |
| |
|
| $templateDir = "" |
| |
|
| $cachedData = [] |
| |
| SlaxWeb\View\Loader\PHP::load |
( |
string |
$template, |
|
|
array |
$data |
|
) |
| |
|
protected |
Load template
Load the template by including the PHP template file and extracting data before hand, so it becomes accessible in the view.
- Parameters
-
| string | $template | Path to the template file |
| array | $data | View data |
- Returns
- string
The documentation for this class was generated from the following file:
- /opt/slax0rDev/slaxweb/view/src/Loader/PHP.php