Re: [SMARTY] config variable problem
| From: | Jason Sweat | Date: | Tue, 18 Feb 2003 12:38:43 +0000 |
| Subject: | Re: [SMARTY] config variable problem | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7820@lists.php.net to get a copy of this message | ||
Hi Peter,
I have not tested this, but something like
{assign var=to value=#mail_info#}
{mailto address=$to text="contact"}
might work
also, did you try
{mailto address=#mail_info# text="contact"} without the quotes?
Regards,
Jason
----- Original Message -----
From: "Peter Turcan" <peter.turcan@centrum.sk>
To: "Smarty" <smarty-general@lists.php.net>
Sent: Tuesday, February 18, 2003 4:45 AM
Subject: [SMARTY] config variable problem
> Hello,
> I have cfg file with this variable:
> mail_info = my@domain.com
>
> and would like to use it:
> {config_load file=my.conf}
> {mailto address="#mail_info#" text="contact"}
>
> but result html is:
> <a href="mailto:#mail_info#" >contact</a>
>
> and not
>
> <a href="mailto:my@domain.com"
> >contact</a>
>
> why? In debug console everything seems to be ok. Variables are loaded,
> but in {mailto... } it doesn't work
> why?
>
> Peter
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>