title: Integrating Doctrine with CodeIgniter
body: <p>I have successfully installed the latest version of CodeIgniter and have basic MVC pattern working. The problem that I've noticed is that CI doesn't naturally allow for prepared statements when it comes to queries. So, I decided to download Doctrine 1 from <a href="https://github.com/doctrine/doctrine2">GitHub</a>. I'm very new to Doctrine and needed some help integrating it with CI so I followed this <a href="http://wildlyinaccurate.com/integrating-doctrine-2-with-codeigniter-2">tutorial</a>. </p>
  
  <p>In one of my controllers, I have</p>
  
  <pre><code>$this-&gt;load-&gt;library('doctrine');
  $this-&gt;em = $this-&gt;doctrine-&gt;em;
  </code></pre>
  
  <p>But, when I go to load the view in my browser, I'm greeted with an error reading </p>
  
  <blockquote>
    <p>Message: require_once(/Applications/MAMP/htdocs/CodeIgniter/application/libraries/Doctrine/Common/ClassLoader.php): failed to open stream: No such file or directory</p>
  </blockquote>
  
  <p>Upon further inspection of the Doctrine download from GitHub, there doesn't even seem to be a folder titled "common" anywhere in there. I'm very new to CI and especially Doctrine. Does anyone have some advice that can help me get this working? Also, is it possible to use the MySQLi driver instead of the PDO one with Doctrine? </p>