title: Symfony2 commandline generation of twig templates under global folder (extended)
body: <p>As related to a previous <a href="https://stackoverflow.com/questions/38265685/symfony2-commandline-generation-of-twig-templates-under-global-folder/38268924#38268924">question</a> i asked, and got an answer to, i'm posting this question to further enhance the usability of the answer, the question was how to automatically generate the twig templates under the global folder <code>app/Resources/views/home/home.html.twig</code> while using <code>php app/console generate:controller</code> command. i got a workable answer to this, which is entering the path to the global app folder like so </p>
  
  <pre><code>Templatename (optional) [AppBundle:Post:get.html.twig]: ::../../../../app/Resources/views/Post/get.html.twig
  </code></pre>
  
  <p>The thing is the generated template still has the <code>{% extends "::base.html.twig" %}</code> clause with double colon for the <code>AppBundle</code> location, and also typing out the long sting path with the <code>../../..</code> would be too painful to do repeatedly. </p>
  
  <p>Im pondering if there is a solution to actually override the console command itself to accommodate this? symfony 3 automatically generates base templates under the global folder and the best practice for symfony 2 is to have templates inside the global folder, i don;t know why the creators have not updated this.</p>
  
  <p>There will be a bounty for <strong>quality answers</strong> on this question a friend has agreed to do so since i do not have enough reputation.</p>