mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-11 18:06:46 +00:00
added some more information about unknown variable/attributes in the doc (closes #685)
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user