title: using multiple autoloaders php
body: <p>Hello I am trying to use SILEX micro framework together with my own library full of classes and therefore I am stuck with 2 loaders that results in a error that the loader can't load classes.. Is there a way to use these 2 loaders simultaneously without getting this error?</p>
  
  <p>the loader that I use you can find below:</p>
  
  <pre><code>    &lt;?php
  
  /*
   * Loader
   */
  
  function my_autoloader($className) 
  {
  // haal de base dir op.
    $base = dirname(__FILE__);
  
  
    // het pad ophalen
    $path = $className;
  
    // alle paden samenvoegen tot waar ik zijn moet en de phpfile eraan plakken.
    $file = $base . "/lib/" . $path . '.php';       
  
    // als file bestaat haal op anders error
    if (file_exists($file)) 
    {
        require $file;
    }
    else 
    {
        error_log('Class "' . $className . '" could not be autoloaded');
        throw new Exception('Class "' . $className . '" could not be autoloaded from: ' . $file); 
    }
  }
  
  spl_autoload_register('my_autoloader');
  
  ?&gt;
  </code></pre>
  
  <p>the loader that silex uses is in the vendor directory ( from the framework itself )</p>
  
  <p>and this is how my file tree looks like:</p>
  
  <p><img src="https://i.stack.imgur.com/lKLXh.png" alt="filetree"></p>