We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95d25d8 commit dea7e7bCopy full SHA for dea7e7b
cookbook/templating/twig_extension.rst
@@ -29,12 +29,12 @@ As an example we will create a price filter to format a given number into price:
29
use Twig_Extension;
30
use Twig_Filter_Method;
31
32
- class AcmeExtension extends Twig_Extension
+ class AcmeExtension extends \Twig_Extension
33
{
34
public function getFilters()
35
36
return array(
37
- 'price' => new Twig_Filter_Method($this, 'priceFilter'),
+ 'price' => new \Twig_Filter_Method($this, 'priceFilter'),
38
);
39
}
40
0 commit comments