For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > March 2004 > Question re caching and {dynamic}









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Question re caching and {dynamic}
Isaac Vita Kohn

2004-03-19, 1:29 pm


Hi all,

I'm trying to make {insert ... assign=variable} play nice even when
caching is turned on. My first thought was to use the {dynamic} {/dynamic}
pragma (mentioned in passing at
http://smarty.php.net/manual/en/caching.cacheable.php):

{dynamic}
{insert ... assign=variable}
{* do some stuff with variable *}
{/dynamic}

Unfortunately, Smarty complains that it doesn't recognize that {dynamic}
tag. I'm using v2.5.0. Is this a feature that was new with v2.6.0? Don't
see it in the changelog...

Thanks,
Isaac


Isaac Vita Kohn
Columbia Daily Spectator
http://www.columbiaspectator.com/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com