2

I have just created an application using cake bake 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?

Roberto Maldonado
  • 1,585
  • 14
  • 27
user387687
  • 31
  • 1
  • 2
  • Please visit http://frogfry.com/blog/cakephp-cannot-find-a-database-configuration-array-error –  Mar 28 '11 at 12:17

2 Answers2

7

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(...);
Bruce Ingalls
  • 71
  • 1
  • 1
3

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 :)

Putuputu
  • 31
  • 2