Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

added some more information about unknown variable/attributes in the …

…doc (closes #685)
  • Loading branch information...
1 parent f2f1f32 commit fbacbe60ada8c7b1978474da19391fda1ffedcc5 @fabpot fabpot committed
Showing with 5 additions and 1 deletion.
  1. +2 −0  doc/api.rst
  2. +3 −1 doc/templates.rst
2  doc/api.rst
@@ -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
4 doc/templates.rst
@@ -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

0 comments on commit fbacbe6

Please sign in to comment.
Something went wrong with that request. Please try again.