|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Budda Smarty Regular
Joined: 19 Apr 2003 Posts: 53 Location: Lymm, Cheshire. UK
|
Posted: Thu Jun 05, 2003 4:21 pm Post subject: Yes and No |
|
|
I've got a config file which defines two variables
Code: | L_No = "No"
L_Yes = "Yes" |
However when printing these variable values to the browser it shows 'Yes' as a 1 and 'No' as nothing (null?). I thought this only happened when the variable value in the config value wasn't surrounded by quotes? - ie its converted the words to boolean. |
|
Back to top |
|
Budda Smarty Regular
Joined: 19 Apr 2003 Posts: 53 Location: Lymm, Cheshire. UK
|
Posted: Mon Jun 09, 2003 1:01 pm Post subject: |
|
|
Can anybody help me out with an explination of why; how to get around this?
Thanks in advance. |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Mon Jun 09, 2003 1:05 pm Post subject: |
|
|
This is actually a feature . You can change the default if you need to.
See: booleanize |
|
Back to top |
|
Budda Smarty Regular
Joined: 19 Apr 2003 Posts: 53 Location: Lymm, Cheshire. UK
|
Posted: Mon Jun 09, 2003 1:21 pm Post subject: |
|
|
ah, cheers big ears (referring to avatar image ) |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|