Symfony2 commandline generation of twig templates under global folder Symfony2 commandline generation of twig templates under global folder symfony symfony

Symfony2 commandline generation of twig templates under global folder


After playing a little with the path for template generation i succeeded in placing the twig file inside the app/Resources/views/ folder.

Assuming that you have the standard architecture of a symfony2 app:You could write the following path for the template when generator asks to specify the Templatename

Templatename (optional) [AppBundle:Post:get.html.twig]: ::../../../../app/Resources/views/Post/get.html.twig