开发者

Cake PHP Fatal Error (256)

I have just created an application using cake b开发者_高级运维ake and when I run it I get the screen that says 'Sweet, myApp got baked' but there are no styling on it and at the bottom I get the following error:

Fatal Error (256): ConnectionManager::getDataSource - Non-existent data source default [CORE\cake\libs\model\connection_manager.php, line 102]

I've configure my database and user etc. But I don't understood what's going on.

Can anyone help please?


You likely entered a name for Cake's bake wizard. Replace that name in app/config/database.php with "$default" Thus,

var $blog = array(...);

becomes

var $default = array(...);


I've just fixed similar bug on my site. Check if all tables in the DB are there. My problem was missing table after db import . Good luck :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜