SlaxWeb Framework
 All Classes Namespaces Functions Variables Pages
Protected Member Functions | List of all members
SlaxWeb\View\Loader\PHP Class Reference
Inheritance diagram for SlaxWeb\View\Loader\PHP:
Inheritance graph
[legend]
Collaboration diagram for SlaxWeb\View\Loader\PHP:
Collaboration graph
[legend]

Protected Member Functions

 load (string $template, array $data)
 
- Protected Member Functions inherited from SlaxWeb\View\AbstractLoader
 combineData (array $data, int $cacheData)
 
 load (string $template, array $data)
 

Additional Inherited Members

- Public Member Functions inherited from SlaxWeb\View\AbstractLoader
 __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)
 
- Public Attributes inherited from SlaxWeb\View\AbstractLoader
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
 
- Protected Attributes inherited from SlaxWeb\View\AbstractLoader
 $response = null
 
 $logger = null
 
 $tplExt = ""
 
 $template = ""
 
 $templateDir = ""
 
 $cachedData = []
 

Member Function Documentation

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$templatePath to the template file
array$dataView data
Returns
string

The documentation for this class was generated from the following file: