Re: [SMARTY] capture cheating
| From: | messju mohr | Date: | Mon, 30 Jun 2003 15:26:47 +0000 |
| Subject: | Re: [SMARTY] capture cheating | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9797@lists.php.net to get a copy of this message | ||
On Mon, Jun 30, 2003 at 06:09:20PM +0200, araki wrote:
> 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}}
{$smarty.capture.$go} should get you going.
>
> But... there's an error :) So how can i do this? Is it possible?
>
> Thank u.
> Bye