コード例 #1
0
ファイル: abstract.model.php プロジェクト: tfont/skyfire
 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;
 }
コード例 #2
0
ファイル: controller.loader.php プロジェクト: tfont/skyfire
 protected function __construct()
 {
     load::service('DB');
     if (is_null($this->DB)) {
         $this->DB = new DB();
     }
 }