哪位大神帮忙解决下。
/**
* 获取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));
}
}
守着一只汪
慕村225694