public static function instance() { if (!self::$instance) { $cache = new Library_config(); self::$instance = $cache; return $cache; } else { return self::$instance; } }
public function __construct() { self::$instance = $this; $this->config = Library_config::instance(); $this->base_url = $this->config->base_url; $this->auto_loader(); }
/** * Load the configuration class * * @return void */ public function __construct() { $this->config = Library_config::instance(); }