TR : [SMARTY] RFC: config-booleanize
| From: | Christopher Rousseau | Date: | Thu, 12 Feb 2004 09:29:54 +0000 |
| Subject: | TR : [SMARTY] RFC: config-booleanize | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-10944@lists.php.net to get a copy of this message | ||
I would prefere to have
Foo = "yes" to not be booleanized. I could envisage to have both the
word and the boolean need in the same config file. And I don't like the
idea of using ""yes"" to keep the string. It could be difficult to
explain to third party people.
My 2 cents ;)
christopher
-----Message d'origine-----
De : messju mohr [mailto:messju@lammfellpuschen.de]
Envoyé : mercredi 11 février 2004 20:41
À : smarty-general@lists.php.net; smarty-dev@lists.php.net
Objet : [SMARTY] RFC: config-booleanize
Hello,
http://smarty.php.net/manual/en/variable.config.booleanize.php
says
about $smarty->config_booleanize:
"If set to true, config file values of on/true/yes and off/false/no
get converted to boolean values automatically. "
I noticed (or better "was pointed to by ubaldo" :) :
in version 2.5.0 and 2.6.0 this is true for
foo = yes
also for
foo = "yes"
but not for
foo = """yes"""
In Smarty-2.6.1 this changed accidently so that """yes""" is also
booleanized.
I consider the current (the one of 2.6.1) behaviour a bug which could
be fixed easily. But while we're at it: Wouldn't it be most intuitive if
foo = "yes"
would'nt be booleanized (to true) and only
foo = yes
would be?
greetings
messju
(sorry for x-posting, I couldn't tell the more appropiate audience for
this)
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php