Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 protected function __construct()
 {
     load::service('DB');
     if (is_null($this->DB)) {
         $this->DB = new DB();
     }
 }