Function Description
|
vlibTemplate ([string Filename [, array Options]])
|
You must define a filename when instantiating the vlibTemplate object, and it must be
here that you define any template specfic OPTION parameters:
Example
|
$options = array('STRICT' => 1,
'CASELESS' => 1);
$tmpl = new vlibTemplate('./templates/default.html', $options);
|
Alternatively, if you wish to define your template file(s) seperate from the instantiation.
You can omit both arguments or use only the Options argument in place of the Filename when
instantiating the class and then use vlibTemplate::newTemplate('/your/file.html'); for
each new template file, i.e.:
Example
|
$options = array('STRICT' => 1,
'CASELESS' => 1);
$tmpl = new vlibTemplate($options);
$tmpl->newTemplate('./templates/default.html');
..or simply:
$tmpl = new vlibTemplate();
$tmpl->newTemplate('./templates/default.html');
|
When including your template, vlibTemplate will use the same include mechanisms used with the <TMPL_INCLUDE> tag.
Note
|
Look at the OPTION section to see in what ways you can manipulate vlibTemplate to work exactly as you need it.
|