title: How do I use the SplClassLoader
body: <p>I am trying to understand and use the PSR-0 Autoloader. But it doesn't work.</p>
  
  <p>My Folder structure:</p>
  
  <p>Core/</p>
  
  <ul>
  <li>Library/</li>
  <li>Model/</li>
  </ul>
  
  <p>My index.php in Root</p>
  
  <pre><code>&lt;?php
  require_once 'Core/Library/SplClassLoader.php';
  
  $loader = new SplClassLoader('Core', 'Core');
  $loader-&gt;register();
  
  
  
  use Model\Post;
  </code></pre>
  
  <p>Post.php in Model folder.</p>
  
  <pre><code>&lt;?php
  namespace Model;
  
  class Post implements PostInterface
  {
  // ...
  </code></pre>
  
  <p>PostInterface</p>
  
  <pre><code>&lt;?php
  namespace Model;
  
  interface PostInterface
  {
  //...
  </code></pre>
  
  <p>I Get the following error:</p>
  
  <p>Fatal error: Class 'Model\Post' not found in C:\wamp\www\Test\index.php on line 17</p>
  
  <pre><code>Line 17: Init new Post;
  </code></pre>
  
  <p>What am I doing wrong here?</p>