Symfony2 Twig extension
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 thishttps://github.com/azat/blog/blob/master/src/Blog/WebBundle/Twig/Extension/WebExtension.php