报错...
[8]ErrorExceptionin Mysql.php line 34
Array to string conversion
/** * 解析pdo连接的dsn信息 * @access protected * @param array $config 连接信息 * @return string */ protected function parseDsn($config) { $dsn = 'mysql:dbname=' . $config['database'] . ';host=' . $config['hostname']; if (!empty($config['hostport'])) { $dsn .= ';port=' . $config['hostport']; } elseif (!empty($config['socket'])) { $dsn .= ';unix_socket=' . $config['socket']; } if (!empty($config['charset'])) { $dsn .= ';charset=' . $config['charset']; } return $dsn;
明明和视频老师代码一样的...