projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
c4b255f
)
fixed typo in the doc
author
Fabien Potencier
<fabien.potencier@gmail.com>
Sat, 8 Jan 2011 16:04:16 +0000 (17:04 +0100)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Sat, 8 Jan 2011 16:04:16 +0000 (17:04 +0100)
doc/recipes.rst
patch
|
blob
|
history
diff --git
a/doc/recipes.rst
b/doc/recipes.rst
index
3add4b7
..
d913920
100644
(file)
--- a/
doc/recipes.rst
+++ b/
doc/recipes.rst
@@
-216,7
+216,7
@@
When a function (or a filter) is not defined, Twig defaults to throw a
``Twig_Error_Syntax`` exception. However, it can also call a `callback`_ (any
valid PHP callable) which should return a function (or a filter).
-For filters, register callbacks with ``registerUndefinedFunctionCallback()``.
+For filters, register callbacks with ``registerUndefinedFilterCallback()``.
For functions, use ``registerUndefinedFunctionCallback()``::
// auto-register all native PHP functions as Twig functions