mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-13 02:46:29 +00:00
Grammatical fix.
This commit is contained in:
+1
-1
@@ -267,7 +267,7 @@ Adding a function is similar to adding a filter. This can be done by calling the
|
||||
|
||||
You can also expose extension methods as functions in your templates::
|
||||
|
||||
// $this is an object that implements instance of Twig_ExtensionInterface.
|
||||
// $this is an object that implements Twig_ExtensionInterface.
|
||||
$twig = new Twig_Environment($loader);
|
||||
$twig->addFunction('otherFunction', new Twig_Function_Method($this, 'someMethod'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user