title: Symfony2: dev to prod, win to unix, clear cache
body: <p>I have written a small Symfony2-Webapp. This worked on win in dev and prod. Than I uploaded all files to the provider and run into some issues:</p>
  
  <p>The log-file tells me, that the twig-engine can't find a view. This helped, because a saw, that I had to correct one capital (index instead of Index) - it's always the same developing under windows and having production under unix.</p>
  
  <p>I corrected the file and uploaded it. Than I deleted the cache (no console).</p>
  
  <p>Still, the error resists!</p>
  
  <p>What can I do?</p>
  
  <hr>
  
  <p>New informations:
  The problem exists, when not warming up the cache (dev and prod). If using console cache:warmup, than the cache is generated right.
  As I found out, the in one generated file, the function 'getTemplateName()' is wrong. All other references in that file are correct.</p>
  
  <p>Sadly, I have no console on my server.</p>
  
  <hr>
  
  <p>EDIT: Answers:</p>
  
  <p>1) Error is: <em>request.CRITICAL: Uncaught PHP Exception InvalidArgumentException: "Unable to find template "sisicalBundle:Index:index.html.twig"." at /var/www/web1261/html/sisical/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 133 {"exception":"[object]</em></p>
  
  <p>I searched the hole src-folder in eclipse: none of my code uses 'Index' (with capital) any more (since I corrected this). Does symphony create sources in 'vendors...' when installing them via composer?</p>
  
  <p>2) I think I don't use assets and they are not the problem.</p>
  
  <p>3) As logs and cache are written, permissions seem to be OK.</p>
  
  <p>4) Good idea, but I can't find an use. I use templating and for that no 'use'-imports for templates. Seaching for 'Index' I found the wrong template-name generated in the cache. Clearing and warming cache does not help.
  Is it possible, that twig generates wrong when using Index as a package/folder name?</p>