added a note about variable resolution and PHP4-style constructors (refs #33)
authorFabien Potencier <fabien.potencier@gmail.com>
Sun, 28 Mar 2010 07:49:09 +0000 (09:49 +0200)
committerFabien Potencier <fabien.potencier@gmail.com>
Sun, 28 Mar 2010 07:49:09 +0000 (09:49 +0200)
doc/02-Twig-for-Template-Designers.markdown

index 93d35ff..134c902 100644 (file)
@@ -72,7 +72,8 @@ If a variable or attribute does not exist you will get back a `null` value
 >
 > * check if `foo` is an array and `bar` a valid element;
 > * if not, and if `foo` is an object, check that `bar` is a valid property;
-> * if not, and if `foo` is an object, check that `bar` is a valid method;
+> * if not, and if `foo` is an object, check that `bar` is a valid method
+>   (even if `bar` is the constructor - use `__construct()` instead);
 > * if not, and if `foo` is an object, check that `getBar` is a valid method;
 > * if not, return a `null` value.
 >