JAVASCIPT_LOAD_TYPE_DEFAULT
JAVASCIPT_LOAD_TYPE_DEFAULT
This class is the main class to render a template. JavaScript, CSS info will be always placed on the root object
__construct(null|string $templatePath = null, null|\stdClass $data = null) : \Fuman_Response_Data
Constructor
| null|string | $templatePath | |
| null|\stdClass | $data |
addCssFile(string $path, string $media = 'all', string|null $packageName = null) : \Fuman_Response_Data
Add a CSS file
| string | $path | |
| string | $media | |
| string|null | $packageName | Used for pack.php |
addJsFile(string $path, integer $javaScriptLoadType, string|null $packageName = null) : \Fuman_Response_Data
Add a Js file
| string | $path | |
| integer | $javaScriptLoadType | |
| string|null | $packageName | Used for pack.php |
setTemplatePath(string $templatePath) : \Fuman_Response_Data
Sets script path
| string | $templatePath |