Hi..
do u have database.php file in your config folder.
If don't create database.php file in your config folder
Follow below process .. it's as a simple.
create the database.php file and past the below code.
<?php
class DATABASE_CONFIG {
public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'root',
'password' => '',
'database' => 'test',
'prefix'=>'zp_',
);
}
On Tue, Jun 18, 2013 at 4:56 PM, Raxit <rajpandya1985@gmail.com> wrote:
Hi,
I am facing this problem from past 5 days. Didn't find any solution. I have checked connection many times. my team have also checked all the connections with Mysql. File is also present under same path.
Error: Confirm you have created the file : app\Config\database.php.
Notice: If you want to customize this error message, create app\View\Errors\missing_connection.ctp.
Stack Trace
--
- ROOT\lib\Cake\Model\ConnectionManager.php line 101 → DboSource->__construct(array)
- ROOT\lib\Cake\Model\Model.php line 3417 → ConnectionManager::getDataSource(string)
- ROOT\lib\Cake\Model\Model.php line 1083 → Model->setDataSource(string)
- ROOT\lib\Cake\Model\Model.php line 3443 → Model->setSource(string)
- ROOT\lib\Cake\Model\Model.php line 2698 → Model->getDataSource()
- APP\Model\Setting.php line 16 → Model->find(string)
- APP\Controller\FunfordayController.php line 268 → Setting->updateCache()
- APP\Controller\FunfordayController.php line 47 → FunfordayController->_loadSettings()
- [internal function] → FunfordayController->beforeFilter(CakeEvent)
- ROOT\lib\Cake\Event\CakeEventManager.php line 246 → call_user_func(array, CakeEvent)
- ROOT\lib\Cake\Controller\Controller.php line 670 → CakeEventManager->dispatch(CakeEvent)
- ROOT\lib\Cake\Routing\Dispatcher.php line 100 → Controller->startupProcess()
- ROOT\lib\Cake\Routing\Dispatcher.php line 85 → Dispatcher->_invoke(FunfordayController, CakeRequest, CakeResponse)
- APP\webroot\index.php line 94 → Dispatcher->dispatch(CakeRequest, CakeResponse)
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment