Parent Class

Public function of PHPTemplateLayer

Example Usage


Usage Notes

This function must be the last PHPTemplateLayer function called for a template. To only partially parse your template and leave variables and blocks that have no assigned value in place, define the $parsetype as "PARTIAL". This can be useful if you want to cache some of your template to a database file and then re-parse the remaining variables and blocks another time. If you do not set the $parsetype to "PARTIAL", any variables or blocks that are not assigned by your PHP code will be removed from the HTML output.


If $outputtype is 'VARIABLE': If no error, parsed template, otherwise 'FALSE'. If $outputtype is not defined as 'VARIABLE' and there is an error outputting your template file, 'Error. Could not open template.' will be displayed to users.