On Mon, 07 Apr 2008 15:53:56 +0100, Christoph Frick
<[EMAIL PROTECTED]> wrote:
$phptal->set('cache_duration', "3 h"); // variable's value must be
integer
...
i hope this is allowed too?
No, it's not allowed (I don't want to check syntax at run time).
otherwise, the original requeeste
On Mon, Apr 07, 2008 at 03:34:23PM +0100, Kornel Lesinski wrote:
> $phptal->set('cache_duration', 3); // variable's value must be integer
> ...
>
$phptal->set('cache_duration', "3 h"); // variable's value must be integer
...
i hope this is allowed too? otherwise, the original requeester st
On 7 Apr 2008, at 12:11, B. Kamer wrote:
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?
I've added such possiblity — check latest S
Thanks but,
this would mean that i still need to set caching properties within the
template... I need to set caching options without a need for special
markup...
setSource is a phptal method, so something like;
$instance = new PHPTal();
$templateSource = '' .
file_get_contents($tpl_file
Hi!
This should be fairly easy. You can set caching as a per-element
condition (if I understand your approach correctly) and cache it
accordingly by making use of tal:condition.
E.g, try something like this:
...in your code:
$instance->cache_h3 = true;
...and in your template (note the us
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?