示例#1
0
 /**
  * @return Config
  */
 public static function getInstance()
 {
     if (empty(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }
示例#2
0
文件: model.php 项目: neel/bong
 public function query()
 {
     $conn = $this->connection();
     if (!$conn) {
         \DatabaseConfig::instance();
         //print_r(\DB\Config::instance());
     }
     return $conn->query();
 }