[PHPTAL] Cache options from PHP

Christoph Frick frick at sc-networks.com
Mon Apr 7 16:53:56 CEST 2008


On Mon, Apr 07, 2008 at 03:34:23PM +0100, Kornel Lesinski wrote:

> $phptal->set('cache_duration', 3);  // variable's value must be integer
> ...
> <div phptal:cache="cache_duration h"> <!-- you must put unit in the 
> attribute after variable's name -->

$phptal->set('cache_duration', "3 h");  // variable's value must be integer
...
<div phptal:cache="cache_duration"> <!-- you must put unit in the 
attribute after variable's name -->

i hope this is allowed too? otherwise, the original requeester still has
the problem, that template and application logic mix.

-- 
cu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : http://lists.motion-twin.com/pipermail/phptal/attachments/20080407/27cf231b/attachment.pgp


More information about the PHPTAL mailing list