[PHPTAL] Cache options from PHP
B. Kamer
post at bushbaby.nl
Mon Apr 7 13:11:46 CEST 2008
Hi,
just been introduced to phptal as an template engine and am
investigating it...
Would it be possible to set caching options not from within the
template but rather from PHP? I need to be able to do this because the
engine that utilizes the template engine decides the caching options?
So instead of:
<tal:block phptal:cache="3h">
... template ...
<tal:block>
i need something like:
$instance = new PHPTal();
$instance->setTemplate($tpl_file);
$instance->setCaching(''3h");
$result = $instance->execute();
thanks
Bas
More information about the PHPTAL
mailing list