Ok, while I haven't solved the problem, I've managed to get a little
more information from this.

It is definitely using the $default database configuration. If I don't
have the $default set up, it fails with an error message.

"Fatal Error (256): ConnectionManager::getDataSource - Non-existent
data source default"

However, it appears to be looking for my $production (I've since
renamed $prod to $production) configuration. If I don't have a
$production configuration in my database.php file, it fails also
although with a different error message.

"Fatal Error (256): ConnectionManager::getDataSource - Non-existent
data source production"

app_model.php looks like:

lass AppModel extends Model
{

var $actsAs = array('Containable');
var $recursive = -1;
var $useDbConfig = 'production';

}

I'm convinced some kind of caching is going on but the cache directory
is being emptied when I run a test as is the browser cache. I'm not
doing anything unusual with my databases and I did have this working a
little while ago so what is going on is anyone's guess.

Alastair

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to