Example #1
0
 public static function instance()
 {
     if (!self::$instance) {
         $cache = new Library_config();
         self::$instance = $cache;
         return $cache;
     } else {
         return self::$instance;
     }
 }
Example #2
0
File: gear.php Project: erxn/siemas
 public function __construct()
 {
     self::$instance = $this;
     $this->config = Library_config::instance();
     $this->base_url = $this->config->base_url;
     $this->auto_loader();
 }
Example #3
0
File: uri.php Project: erxn/siemas
 /**
  * Load the configuration class
  *
  * @return void
  */
 public function __construct()
 {
     $this->config = Library_config::instance();
 }