From 0ff74caca23963d6d3e8537af10d53e92f56a1d5 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Fri, 28 May 2010 07:32:29 +0200 Subject: [PATCH] [doc] added documentation for the ignore_invalid_variables option --- doc/03-Twig-for-Developers.markdown | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/doc/03-Twig-for-Developers.markdown b/doc/03-Twig-for-Developers.markdown index 463a698..ee55dc1 100644 --- a/doc/03-Twig-for-Developers.markdown +++ b/doc/03-Twig-for-Developers.markdown @@ -93,6 +93,13 @@ The following options are available: the `auto_reload` option, it will be determined automatically based on the `debug` value. + * `ignore_invalid_variables` (new in Twig 0.9.7): If set to `true`, Twig will + silently ignore invalid variables (variables and or attributes/methods that + do not exist) and replace them with a `null` value. When set to `false`, + Twig throws an exception instead. If you don't provide a value for the + `ignore_invalid_variables` option, it will be determined automatically + based on the `debug` value (`false` when in debug mode, `true` otherwise). + >**CAUTION** >Before Twig 0.9.3, the `cache` and `auto_reload` options did not exist. They >was passed as a second and third arguments of the filesystem loader -- 1.7.2.5