mercredi 20 août 2014

How can I set the filesystem path for twig when using from vendor folder?


Vote count:

0




I created a php-Class which is a controller for a custom "button". This class is displayed by this controller using twig. And: This class is getting the $twigEnvironment varaible from the main project as a parameter when it is constructed. When I use it inside of my project everything is fine. I decided to put this "button-controller" outside of my project using composer; now I can update composer and the button-controller-class is placed inside the vendor´s folder of my php-project. Still fine. But now: How and where do I set the path of that twig template that sits inside my vendor´s folder? Is there a possibility to set it "inside" the component? Or do I have to specify the path to that twig template from my main project? Thanks a lot.



asked 1 min ago







How can I set the filesystem path for twig when using from vendor folder?

Aucun commentaire:

Enregistrer un commentaire