new HTML_Template_Flexy | $flexy->outputObject() |
HTML_Template_Flexy | |
PEAR Manual | |
void $flexy->
compile (
string
$template
)
If neccessary it will convert the Template markup into PHP code, and writes it to the compiledTemplate directory adding the {locale}.php to the end of the filename. The Template is only compiled if
No compiled file exists
The file modification date of the template is greater than the compiled one
The forceCompile Flag was set in config or when you created the template object.
It is not normally neccessary to set the forceCompile flag, unless you are working on the engine itself.
string $template - Used in conjuction with the config variable 'templateDir' to locate the template to compile into PHP code.
string - the location of the compiled file (which could be used with include) - although it is recommended to use the outputObject methods.
This function can not be called statically.
Compiling multiple files.
|
Master template example
Page Header Goes here. {outputBody()} Page Footer Goes here |
Simple ouput example
Page Header Goes here. some numbers Number 1 Number 2 Number 3 Number 4 Page Footer Goes here |
new HTML_Template_Flexy | $flexy->outputObject() |
HTML_Template_Flexy | |
PEAR Manual | |