I have some problem to implement twig extension. I need to create my own filter (a substr filter). So I have thought to use twig extension.
I created a folder named \"Ex
Replace this
namespace Bundle\WebsiteBundle\Extension;
By this
namespace MyApp\Bundle\WebsiteBundle\Extension;
And for what your need dir Bundle/WebsiteBundle
?
Is Bundle
is not enough?
Your can see here how I implement this https://github.com/azat/blog/blob/master/src/Blog/WebBundle/Twig/Extension/WebExtension.php