Re: [SMARTY] template variables in template variables
| From: | Jason Sweat | Date: | Sun, 14 Apr 2002 04:11:03 +0000 |
| Subject: | Re: [SMARTY] template variables in template variables | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-3693@lists.php.net to get a copy of this message | ||
You can't access the $smarty variables in your script,
did you really mean
$test = 'ip='.$_SERVER['HTTP_REFERER'];
?
Jason
----- Original Message -----
From: "G" <gerard@interfold.com>
To: <smarty-general@lists.php.net>
Sent: Saturday, April 13, 2002 2:06 AM
Subject: [SMARTY] template variables in template variables
>
> Hello,
>
> Here's what I'm trying to do:
>
>
> $text = "ip={$smarty.server.HTTP_REFERER}";
>
> $smarty->assign('text', $text);
>
> $smarty->fetch('template.tpl');
>
>
> So any template variables/functions in variable contents would be parsed
by
> smarty. Needless to say, it doesn't work. Is there a way to accomplish
this?
>
> Thanks,
> Gerard
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>