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


_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to