0
當我運行蛋糕烤全部然後我收到如下所示的錯誤信息。這是我的道路嗎?CakePHP蛋糕烘烤所有錯誤
路徑上的窗口:
C:\wamp\bin\php\php5.3.5;C:\wamp\bin\mysql\mysql5.5.8\bin;C:\wamp\www\cakephp_bake\app\Console
錯誤消息:
Welcome to CakePHP v2.0.6 Console
---------------------------------------------------------------
App : www
Path: C:\wamp\www\
---------------------------------------------------------------
Bake All
---------------------------------------------------------------
Warning Error: include_once(C:\wamp\www\Config\database.php): failed to open str
eam: No such file or directory in [C:\wamp\www\cakephp_bake\lib\Cake\Model\Conne
ctionManager.php, line 68]
Warning Error: include_once(): Failed opening 'C:\wamp\www\Config\database.php'
for inclusion (include_path='C:\wamp\www\cakephp_bake\lib;.;C:\php\pear') in [C:
\wamp\www\cakephp_bake\lib\Cake\Model\ConnectionManager.php, line 68]
Error: The datasource configuration "default" was not found in database.php
#0 C:\wamp\www\cakephp_bake\lib\Cake\Model\ConnectionManager.php(94): Connection
Manager::_getConnectionObject('default')
#1 C:\wamp\www\cakephp_bake\lib\Cake\Console\Command\Task\ModelTask.php(862): Co
nnectionManager::getDataSource('default')
#2 C:\wamp\www\cakephp_bake\lib\Cake\Console\Command\Task\ModelTask.php(800): Mo
delTask->getAllTables('default')
#3 C:\wamp\www\cakephp_bake\lib\Cake\Console\Command\Task\ModelTask.php(888): Mo
delTask->listAll('default')
#4 C:\wamp\www\cakephp_bake\lib\Cake\Console\Command\BakeShell.php(149): ModelTa
sk->getName('default')
#5 C:\wamp\www\cakephp_bake\lib\Cake\Console\Shell.php(386): BakeShell->all()
#6 C:\wamp\www\cakephp_bake\lib\Cake\Console\ShellDispatcher.php(177): Shell->ru
nCommand('all', Array)
#7 C:\wamp\www\cakephp_bake\lib\Cake\Console\ShellDispatcher.php(69): ShellDispa
tcher->dispatch()
#8 C:\wamp\www\cakephp_bake\app\Console\cake.php(41): ShellDispatcher::run(Array
)
#9 {main}
C:\wamp\www>
讓我知道如果我需要證明任何東西。謝謝。
Stackoverflow不會讓我這麼多的代碼,所以我輸入這句話讓編輯感到高興。
您的路徑是 - '路徑:C:\ Documents和Settings \的RAYGUN \ '是不正確的應該是路徑到您的工作蛋糕項目目錄 – Rikesh 2012-03-30 13:17:52
也檢查此 - > http://stackoverflow.com/questions/9715480/cakephp-2-1-naming-convensions-issue-in-version-change – Rikesh 2012-03-30 13:22:00
我改變了我的目錄,更新了我的錯誤信息 – Dale 2012-03-30 13:26:08