Re: [SMARTY] php-Tag and Smarty-Variable
| From: | messju mohr | Date: | Mon, 01 Dec 2003 16:51:19 +0000 |
| Subject: | Re: [SMARTY] php-Tag and Smarty-Variable | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10611@lists.php.net to get a copy of this message | ||
On Mon, Dec 01, 2003 at 05:35:19PM +0100, Stefan Sturm wrote:
> Hello,
>
> I have to use the php-Tag in one of my Templates. But I also need a
> Smarty-Variable in the tag.
> How can I access the variable?
- access the displaying Smarty-object as $this
- use $this->get_template_vars('variablename')
HTH
> Thanks for your help,
> Stefan Sturm