title: Twig Can't Find My Directory
body: <p>I just installed Twig as part of my own MVC framework. I'm having problems getting it to recognize my directory path when setting up the loader. I tired the following three versions:</p>
  
  <pre><code>$twigLoader = new Twig_Loader_Filesystem('../views/user');
  $twigLoader = new Twig_Loader_Filesystem('http://AmColAn.loc/research/views/user');
  $twigLoader = new Twig_Loader_Filesystem('/Volumes/Data RAID/htdocs/AmColAn/research/views/user');
  </code></pre>
  
  <p>The first two gave an error that the directory couldn't be found while the third one works fine. Obviously, I'm not going to be able to do this on my production server (godaddy). I suspect I'm doing something simple wrong. It runs on XAMPP on OS X 10.8.2. The twig directory is in the research directory shown in the code. The code is in a file in research/classes.</p>
  
  <p>I also added an .htaccess file to the research directory. It contains:</p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine on
  RewriteRule ^([a-zA-Z]*)/?([a-zA-Z]*)?/?([a-zA-Z0-9]*)?/?$ index.php?controller=$1&amp;action=$2&amp;id=$3 [NC,L]
  </code></pre>
  
  <p>Could this be the problem? I could see it for version 2.</p>
  
  <p>Update: I tried the following:</p>
  
  <pre><code>$twigLoader = new Twig_Loader_Filesystem('views/user');
  </code></pre>
  
  <p>This works as well. It seems the starting point for file or directory references is research. I've always had to back out to the base directory with ../'s in all my other php code. The only difference in this case is that there is an .htaccess file. I'd like to know if it's responsible for the behavior and why.</p>