[TYPO3-50-general] TypoScript 2.0 syntax

Robert Lemke robert at typo3.org
Wed Jun 13 10:15:28 CEST 2007


Hi Elmar,

Am 13.06.2007 um 09:26 schrieb Elmar Hinz:

> But I don't like PHP constants in general, because they are in the  
> global
> space. Class variables and constants are the better alternatives  
> for me.
> They are not uppercase.

why not? I always write constants in uppercase, no matter if they are  
global
or not. I like simple rules:

   - everything uppercase: it's a constant
   - UpperCamelCase: it's a class name / TypoScript object type
   - camelCase: it's a variable name

robert
-- 
http://typo3.org/gimmefive




More information about the TYPO3-project-5_0-general mailing list