capture cheating

From: Date: Mon, 30 Jun 2003 16:09:20 +0000
Subject: capture cheating
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9796@lists.php.net to get a copy of this message
Hi... I have and idea... I have my "captures" in blocks.tpl and i include them by this: {include file="blocks.tpl"} Now i can reach each of the captures by {$smarty.capture.1} or {$smarty.capture.2} and so on... Instead of writing a lot of if's o wanted to use a global variable $go.. And the it would be just like this: {$smarty.capture.{$go}} But... there's an error :) So how can i do this? Is it possible? Thank u. Bye

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