Re: [SMARTY] parse config vars in variable
| From: | messju mohr | Date: | Thu, 19 Jun 2003 13:09:32 +0000 |
| Subject: | Re: [SMARTY] parse config vars in variable | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9733@lists.php.net to get a copy of this message | ||
On Thu, Jun 19, 2003 at 02:45:10PM +0200, Martin Kloss wrote:
[...]
> BUT, in this case the display method parses the content.tpl
> and NOT the text which it outputs. So I tried modifying the
> content.tpl to get the variable modified, but that didn't work either:
>
> {foreach from=$cname item="c"}
> {eval var=$c.content}
> {/foreach}
^^^ this works for me, really. i copy+pasted your example. it works
with Smarty-2.3.1, Smarty-2.4.2 and Smarty-2.5.0 without any problems.
*shrug*
> So how can I make sure the text in $c.content inside the content.tpl
> gets evaluated by Smarty?
>
> Martin.