$tpl = new ctemplate ("example.tpl", STRIP_BLANK_LINES);
$dict = new ctemplate_dict;
$dict->set ("NAME", "John Smith");
$out = $tpl->expand ($dict);
echo $out;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function to create new ctemplate object
|
|
|
|
|
|
|
|
|
|
Initial value: { {NULL, NULL, NULL} } |
|
|
|
Initial value: { {NULL, NULL, NULL} } |
|
Initial value: { {NULL, NULL, NULL} } |
|
Initial value: { "cTemplate", cTemplate_functions, PHP_MINIT(cTemplate), PHP_MSHUTDOWN(cTemplate), NULL, NULL, PHP_MINFO(cTemplate), STANDARD_MODULE_PROPERTIES } |
|
|
|
|