![]() |
Should variables contain apostrophes in templates?
Should variables contain apostrophes in templates?
What I mean by this is should they look like this: Code:
<if condition="$post['fieldx'] == 'lala'"> .... Code:
<if condition="$post[fieldx] == 'lala'"> .... Note to mods: I have accidentally posted this in the wrong forum, it should be in the vB3 General Discussions or vB3 Programming Discussions. |
Zend uses quotes... http://framework.zend.com/manual/1.1...ing-style.html
PHP doco says use quotes... http://www.php.net/manual/en/language.types.array.php Quote:
|
So basically treat as if they where php.
|
Quote:
And although you didn't ask about it, variables used in a template (in vb3) go in to a double quoted string, so those rules apply there. |
All times are GMT. The time now is 05:30 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|