Re: [SMARTY] problems with popups on Smarty-2.5.0
| From: | messju mohr | Date: | Mon, 14 Apr 2003 11:21:13 +0000 |
| Subject: | Re: [SMARTY] problems with popups on Smarty-2.5.0 | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9244@lists.php.net to get a copy of this message | ||
On Mon, Apr 14, 2003 at 12:51:42PM +0200, Lucas J. Mozer wrote:
> Hello there.
>
> I store data for menu of my app in array. On Smarty-2.4.0 i use this
> syntax:
>
> {popup text="<B>$menu.tip[menu]</B>"}
>
> to get bold in popups, but since Smarty 2.5.0 i see 'Array.tip[menu]'
> instead of popup text. I know that my method is propably incorrect.
> But is there any way to pass some variables to functions mixing
> variable and quoted text (something like
> some_php_function("sometext".$someval);)? Also, is there any way to
> use modifiers (for example - i wish to replace something in popup text)
> while giving params for Smarty function?
yes, the new backticks in 2.5.0 are just made for that.
{popup text="<B>
$menu.tip[menu]</B>"}
should do in your particular case.
greetings
messju
> Thanks for any help.
>
> Regards.
> --
> Sorry for my english, i'm not native english speaker.
> Lucas J. Mozer