Re: [SMARTY] Can't change delimiters.
| From: | Monte Ohrt | Date: | Tue, 07 Feb 2006 14:24:45 +0000 |
| Subject: | Re: [SMARTY] Can't change delimiters. | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13307@lists.php.net to get a copy of this message | ||
remove all compiled templates and cache files.
Juan Carlos Cruz Dada wrote:
Hello, I've been playing with Smarty for a few now, and I have to say it is one of the best template engines around. Today I updated to the latest release (2.6.12) and when I change the delimiters, it simply prints the whole template, without parsing it. I want to change the delimiters as the final users tend to use the normal deliiters a lot, because of the way they design their templates. What could be the problem? I changed it on the main class and on the instance script, as I would like it to stay that way even if my clients modify the class instance "by mistake" Here is the code I changed. On libs/Smarty.class.php /*** The left delimiter used for the template tags. * * @var string */var $left_delimiter = '<!{'; //'{'; /*** The right delimiter used for the template tags. * * @var string */var $right_delimiter = '}!>'; //'}'; and on the instancing of smarty class $smarty->left_delimiter = '<!{'; $smarty->right_delimiter = '}!>'; Regards, JC