title: PHP: Including files in my own MVC framework?
body: <p>I've just started to build my very own MVC framework. Feel's kind of nice to know everything from the ground up and only get the stuff that's really necessary for my app.</p>
  
  <p>I come from a codeIgniter background which helped me to get into the MVC perspective of seeing things. In codeigniter, to include a file, <a href="http://codeigniter.com/user_guide/libraries/loader.html" rel="nofollow">codeIgniters very own load class</a> is used. </p>
  
  <p>This load class, when loading a file, checks if a file have previously been included, and if not includes it, which ensures that a file isn't included twice.</p>
  
  <p>However this method of including files has the downside of making it impossible (?) to run tests on my files or take advantage of PHPdoc in my IDE, which I need.</p>
  
  <p>Clearly, I can use the normal <code>include</code> &amp; <code>require</code> functions in PHP forwards and backwards across my application, where a certain library would be needed, but it clearly won´t be good to possible include the same file twice...</p>
  
  <p><strong>So - what's a good solution to use in my own PHP5 MVC framework to include files?</strong></p>