How to change delimeter temporary ?
| From: | Markus Fischer | Date: | Thu, 23 Aug 2001 00:30:24 +0000 |
| Subject: | How to change delimeter temporary ? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1374@lists.php.net to get a copy of this message | ||
I'm trying to achieve this by doing:
$s = new Smarty;
$s->left_delimeter = '{{';
$s->right_delimeter = '}}';
But upon template parsing I just get
Warning: Smarty: [in anmelden.htm line 93]: syntax error: unknown
tag - '{'
The line in question
{{ html_options options=$list_gaeste }}
Using single { and } still works.
Maybe its just the it isn't supported that way ... ?
Directly changing the delimter in the class files only processed
code within single { and } and passed everything start with {{
and ending with }} directly to the browser which then looks like
this
<select name="select">
{ html_options options=$event_types }
</select>
ty,
Markus
--
Markus Fischer, http://guru.josefine.at/~mfischer/
EMail: mfischer@guru.josefine.at
PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0
-All your scripts are belong to Zend-