RE: [SMARTY] Parsing problem with dynamic tempate functions

From: Date: Tue, 24 Sep 2002 18:42:39 +0000
Subject: RE: [SMARTY] Parsing problem with dynamic tempate functions
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6021@lists.php.net to get a copy of this message
You might have to change your smarty delimiter to something else... or maybe do something programmatically in your function to convert a hex code or something to the curly bracket -- Josh -----Original Message----- From: Georges Berscheid [mailto:georges@berscheid.lu] Sent: Tuesday, September 24, 2002 2:36 PM To: smarty-general@lists.php.net Subject: [SMARTY] Parsing problem with dynamic tempate functions 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. -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#6021) next »