Ejemplo n.º 1
0
 /**
  * Constructor
  *
  * set private to avoid directly instatiation to implement
  * Singleton Design Pattern
  **/
 private function __construct()
 {
     self::$path = dirname(__FILE__);
     if (function_exists('spl_autoload_register')) {
         require_once "loader" . DIRECTORY_SEPARATOR . "PadlAutoLoader.php";
         PadlAutoloader::registerAutoload();
     } else {
         require_once "loader" . DIRECTORY_SEPARATOR . "PadlAutoLoaderFunction.php";
     }
 }