哪位大神帮忙解决下。/*** 获取PDO实例* @param void* @return obj PDO实例*/private function getPDO(){try{if (!($this->pdo instanceof PDO)){$this->pdo = new PDO($this->dns, $this->username, $this->password);//在上面这行开始报错}return $this->pdo;}catch (PDOException $e){Log::fatal(array('PDO:', $this->dns, $this->username, $this->password));}}
添加回答
举报
0/150
提交
取消