Hi,
if I rename database.php in database.temp in my app condif dir

cakephp return to me:
-----------
Requires a Database Connection
Confirm you have created the file : mydb\config\database.php.

Missing Database Connection: ConnectionManager requires a database
connection
-----------

If I remane var $mydb = array( .... in $pippo = array( ....

cakephp return tome

Fatal error: ConnectionManager::getDataSource - Non-existent data
source mydb in C:\www\cake\cake\libs\model\connection_manager.php on
line 110

but if there is data source "mydb" cakephp run always he dbconfig
present in dbo_mysql.php

this is my Gallery model

<?php
class Gallery extends AppModel
{
        var $name = 'Gallery';
       var $useDbConfig = 'mydb';

        var $validate = array(
            'id' => VALID_NOT_EMPTY,
            'nome' => VALID_NOT_EMPTY,
            'commento' => VALID_NOT_EMPTY
        );


}
?>

thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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