title: Cannot instantiate a PDO object in PHP MVC framework
body: <p>Can anyone help me with this?</p>
  
  <p>I have this function in a singleton class. The error it is giving me back is that it cannot find the class.</p>
  
  <p>First I thought it had something to do with the autoloader, but I did spl_autoload_unregister('libloader') and it still gives the same error?</p>
  
  <p>The host is running php 5.</p>
  
  <pre><code>public static function getInstantie()
      {
          if (!self::$instantie)
          {
              $config = config::getInstantie();
              $db_type = $config-&gt;config_waarden['database']['db_type'];
              $hostnaam = $config-&gt;config_waarden['database']['db_hostnaam'];
              $dbnaam = $config-&gt;config_waarden['database']['db_naam'];
              $db_wachtwoord = $config-&gt;config_waarden['database']['db_wachtwoord'];
              $db_gebruikersnaam = $config-&gt;config_waarden['database']['db_gebruikersnaam'];
              $db_poort = $config-&gt;config_waarden['database']['db_poort'];
  
          self::$instantie = new PDO("$db_type:host=$hostnaam;port=$db_poort;dbname=$dbnaam",$db_gebruikersnaam, $db_wachtwoord);
              self::$instantie-&gt; setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
          }
          return self::$instantie;
      }
  </code></pre>
  
  <p>thanks, Richard</p>