protected function __construct() { load::service('DB'); // calling a connector class into an instance if (is_null($this->DB)) { $this->DB = new DB(); } // returning the connector class return $this; }
protected function __construct() { load::service('DB'); if (is_null($this->DB)) { $this->DB = new DB(); } }