Please anyone tell me how i solve this problem.please help someone

牧云@^-^@ 提交于 2021-02-11 04:31:47

问题


Notice (8): Use of undefined constant ankitgir_deshbhakt - assumed 'ankitgir_deshbhakt' [CORE/Cake/Model/ConnectionManager.php, line 69]

Code Context
        include_once APP . 'Config' . DS . 'database.php';
        if (class_exists('DATABASE_CONFIG')) {
            static::$config = new DATABASE_CONFIG();
```
ConnectionManager::_init() - CORE/Cake/Model/ConnectionManager.php, line 69
ConnectionManager::getDataSource() - CORE/Cake/Model/ConnectionManager.php, line 83
Model::setDataSource() - CORE/Cake/Model/Model.php, line 3626
Model::setSource() - CORE/Cake/Model/Model.php, line 1155
Model::getDataSource() - CORE/Cake/Model/Model.php, line 3653
Model::_readDataSource() - CORE/Cake/Model/Model.php, line 3031
Model::find() - CORE/Cake/Model/Model.php, line 3003
Video::getDetails() - APP/Model/Video.php, line 75
ConfigController::view() - APP/Controller/ConfigController.php, line 53
ReflectionMethod::invokeArgs() - [internal], line ??
Controller::invokeAction() - CORE/Cake/Controller/Controller.php, line 491
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 193
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 167
require - APP/webroot/index.php, line 110
[main] - ROOT/index.php, line 41


回答1:


If a table exists in a database and cakephp says there is no such table in default datasources then you may have misspelled or even forget to put database name in config file, check if database name is correct in configuration.



来源:https://stackoverflow.com/questions/65905765/please-anyone-tell-me-how-i-solve-this-problem-please-help-someone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!