Re: [SMARTY] eval in prefilter
| From: | Andreas Heintze | Date: | Sun, 05 May 2002 13:45:40 +0000 |
| Subject: | Re: [SMARTY] eval in prefilter | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4058@lists.php.net to get a copy of this message | ||
>I also tried:
>
>function test_Prefilter($tpl_source, &$smarty_obj)
>{
> $tpl_source = "{assign var='email'
> value='test@test.com'}{$email}"
.
>$tpl_source;
>
> return $tpl_source;
>}
>
>No error this time, but no sign of the email var on the page either!
>
>Any idéas?
>/Andreas
This one was my fault, I added a backslash \ like this: {\$email} and it
worked,
but the eval problem is still there and I really need this to work.
Any help is appreciated, thanks!
/Andreas
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php