Constructor of TemplateView
void
TemplateView
(String $activeTemplate)
-
String
$activeTemplate: Path to active template directory
Method to add new CSS files to array
void
addCssFile
(String $cssFilename)
Method to add correct JS and CSS files from template
String
addCssJs
()
Method to add new JS files to array
void
addJsFile
(String $jsFilename)
Method to assign all template values to our template
void
assign
(String $key, String $value)
-
String
$key: Array-key
-
String
$value: Array-value for key
Method to return activeTemplate-path
activeTemplate-path
getActiveTemplate
()
Function which renders the template
void
render
()
Method to render the template with gzip compression
void
renderGzipped
()
Method to return template content as string
Content
returnTemplate
()
Method to set different template filename
void
setTemplateFile
(String $templateFile)