Re: [SMARTY] template variables in template variables
| From: | Monte Ohrt | Date: | Sat, 13 Apr 2002 16:03:33 +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-3676@lists.php.net to get a copy of this message | ||
Yep, check out the eval function.
http://www.phpinsider.com/php/code/Smarty/docs/language.custom.functions.html#LANGUAGE.FUNCTION.EVAL
Monte
G wrote:
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-- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc.