|
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 > > > |
|
![]() |
| Outils de la discussion | |
|
|