From: Fabien Potencier Date: Fri, 28 May 2010 05:32:29 +0000 (+0200) Subject: [doc] added documentation for the ignore_invalid_variables option X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=0ff74caca23963d6d3e8537af10d53e92f56a1d5;p=konrad%2Ftwig.git [doc] added documentation for the ignore_invalid_variables option --- 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