Cakephp 2.0.4烘焙错误

时间:2011-12-05 15:22:12

标签: php cakephp

我尝试使用'cake bake'命令与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.

为什么会发生这种情况?

1 个答案:

答案 0 :(得分:0)

如果你想说

  

您的include_path

上的CakePHP

**来自webroot / index.php文件的代码**

  

为了便于开发,CakePHP使用PHP的include_path。如果你   无法修改include_path设置此值。

设置包含路径将消除此错误。有两种方法可以实现这一目标:

  1. 编辑你的php ini文件(在wamp上这将是WAMPMENU-> PHP-> php.ini)
  2. Better Description on how to.

    //这种方法不建议用于此情况

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

    如果您不想搞砸所有这些,只需在index.php文件中手动设置包含路径。