Parsing problem with dynamic tempate functions
| From: | Georges Berscheid | Date: | Tue, 24 Sep 2002 18:35:46 +0000 |
| Subject: | Parsing problem with dynamic tempate functions | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6020@lists.php.net to get a copy of this message | ||
Hi,
I'm very new to this list, and I browsed the archive but I could not find
anything answering my question, so please do not hit on me too much if there
is an answer and I just didn't find it :)
All I'm trying to do is passing any string as a parameter to a dynamic
template function (registered with register_function).
e.g. {createlink name="foobar"} works perfectly.
Although {createlink name="{}foobar{}"} where the brackets belong to the
actual string I want to pass to the function, produces the following error:
Fatal error: Smarty plugin error: [in listlinks.tpl line 175]: unknown tag -
'' in /home/web/php/Smarty-2.3.0/Smarty.class.php on line 1980
I tried everything I could think of, including escaping the brackets, leave
the outer brackets away, using single quotes etc. but nothing worked :-/
Any hint ?
Thanks,
Georges
P.S. This is Smarty-2.3.0 with PHP-4.2.3 and Apache-1.3.26 on a RedHat-7.0
Machine.