title: Symfony 2.6 and Twitter Bootstrap: Unable to find template
body: <p>My experience with Symfony frontend development is definitely limited. According to <a href="http://symfony.com/blog/new-in-symfony-2-6-bootstrap-form-theme" rel="nofollow">http://symfony.com/blog/new-in-symfony-2-6-bootstrap-form-theme</a> I read that adding <code>bootstrap_3_layout.html.twig</code> as a twig form resource I should be able to essentially add Bootstrap themes to my form.</p>
  
  <p>I presume I need to add some CSS files somewhere, maybe, but I haven't even got that far yet.</p>
  
  <p>My problem is that after setting the reference as per the blog post:</p>
  
  <pre><code># Twig Configuration
  twig:
      debug:            "%kernel.debug%"
      strict_variables: "%kernel.debug%"
      form:
          resources: ["bootstrap_3_layout.html.twig"]
  </code></pre>
  
  <p>in my <code>config.yml</code> file, I get the following "error stack" in Symfony:</p>
  
  <pre><code>[3/3] Twig_Error_Loader: Unable to find template "bootstrap_3_layout.html.twig" in kernel.root_dir/Resources/views/base.html.twig at line 10.
  [2/3] InvalidArgumentException: Unable to find template "bootstrap_3_layout.html.twig" : "The file "bootstrap_3_layout.html.twig" does not exist (in: /path-to-symfony/app/Resources).
  [1/3] InvalidArgumentException: The file "bootstrap_3_layout.html.twig" does not exist (in: /path-to-symfony/app/Resources).
  </code></pre>
  
  <p>I added twig-bridge via composer, just in case, but that doesn't seem to resolve it. </p>
  
  <p>The only location of a file with that name that I can find is at:
  <code>./vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_3_layout.html.twig</code>.</p>
  
  <p>If I put a breakpoint in the <code>vendor/twig/twig/lib/Twig/Loader/Filesystem.php</code> file in the findTemplate method, a normal page goes through the process of iterating over <code>$this-&gt;paths['__main__']</code> which has two entries:</p>
  
  <ul>
  <li>path-to-symfony/app/Resources/views</li>
  <li>path-to-symfony/vendor/symfony/twig-bridge/Symfony/Bridge/Twig/Resources/views/Form</li>
  </ul>
  
  <p>I'm guessing that I need to somehow put the directory that the file is in into that paths array, but don't know how.</p>
  
  <p>Can anyone point me in the direction of this (no doubt) simple solution?</p>
  
  <p>Many thanks.</p>