Symfony2 commandline generation of twig templates under global folder

后端 未结 1 1102
半阙折子戏
半阙折子戏 2021-01-19 01:38

I\'m using Symfony2.8 and when ever I use the command line for generating controllers and twig templates the templates are created under

相关标签:
1条回答
  • 2021-01-19 02:18

    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
    
    0 讨论(0)
提交回复
热议问题