2011-12-05 57 views
0

我試着烤使用CakePHP 2.0.4與「蛋糕烘焙」命令 穩定的,但它給了我下面的錯誤...CakePHP的2.0.4烘錯誤

Unable to set console path for app/Console. 
CakePHP is on your `include_path`. CAKE_CORE_INCLUDE_PATH will be set, but commented out. 
Unable to set CAKE_CORE_INCLUDE_PATH, you should change it in /home/wmetools/public_html/security/app/Console/myapp/webroot/index.php 
Project baked but with some issues.. 
Your database configuration was not found. Take a moment to create one. 

是否有一個原因,這是怎麼回事?

+0

你是否正在運行命令:「控制檯/蛋糕烘烤」從應用程序目錄內? – Anthony

回答

0

如果你的意思是說

CakePHP是在你的include_path

**代碼從根目錄/ index.php文件**

爲了便於開發CakePHP使用PHP的include_path。如果你 不能修改你的include_path設置這個值。

設置包含路徑將擺脫此錯誤。有兩種方法來實現:

  1. 編輯你的PHP ini文件(在WAMP這將是WAMPMENU-> PHP-> php.ini中)

Better Description on how to.

//此方法不建議用於這種情況

1. ini_set("include_path", ".:../:./include:../include"); 

如果您不想混淆所有這些,只需在index.php文件中手動設置包含路徑即可。