Re: [SMARTY] Suggestion /Monte: Question

From: Date: Sun, 14 Apr 2002 17:57:34 +0000
Subject: Re: [SMARTY] Suggestion /Monte: Question
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-3707@lists.php.net to get a copy of this message
"Monte Ohrt" <monte@ispi.net> schrieb im Newsbeitrag news:3CB9BF39.3050506@ispi.net... > fetch('index.tpl'); > > If index.tpl has insert tags, they should remain dynamic. What is the > problem exactly? Problem: PHP-Script: --------------------- $smarty -> caching = 1; // 2 now :-) foreach ($locations as $location){ $block[$location][] = $smarty -> fetch($template".tpl"); // $template.tpl using {insert}s } $smarty -> assign ('block', $block); $smarty -> display ('index.tpl'); Template ------------- {section name=rank loop=$block.left} {$block.left[rank]} {*some html-code for block-divider*} {/section} The fetched {insert}s now get lost with caching the 'index.tpl'. {insert name=fetched block=$block.left[rank]} would not work within a section. Any suggestions? Norbert

« previous php.smarty.general (#3707) next »