added some more information about unknown variable/attributes in the doc (closes #685)

This commit is contained in:
Fabien Potencier
2012-04-05 22:53:25 +02:00
parent f2f1f32b41
commit fbacbe60ad
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -60,6 +60,8 @@ You can also load and render the template in one fell swoop::
echo $twig->render('index.html', array('the' => 'variables', 'go' => 'here'));
.. _environment_options:
Environment Options
-------------------
+3 -1
View File
@@ -78,7 +78,9 @@ properties of a PHP object, or items of a PHP array), or the so-called
variable but the print statement. If you access variables inside tags
don't put the braces around.
If a variable or attribute does not exist you will get back a ``null`` value.
If a variable or attribute does not exist, you will get back a ``null`` value
when the ``strict_variables`` option is set to ``false``, otherwise Twig will
throw an error (see :ref:`environment options<environment_options>`).
.. sidebar:: Implementation