0
CakePHP的項目運行在現場server.error項目時顯示錯誤時,作爲一直低於缺少數據源配置運行在現場
Missing Datasource Configuration Error: The datasource configuration default was not found in database.php.
我database.php中文件
class DATABASE_CONFIG {
public $default;
function __construct(){
$this->default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'root',
'password' => 'xxxxxx',
'database' => 'demo',
'prefix' => '',
);
}
}
請幫我解決問題。在此先感謝