【问题标题】:Getting a error when tring to bake it. #cakephp尝试烘烤时出错。 #cakephp
【发布时间】:2020-06-05 12:30:34
【问题描述】:

尝试创建小型数据库并将其烘焙。但出现错误。

c:\xampp\htdocs\cakeBlog>bin\cake bake 异常:找不到插件 DebugKit。

[C:\xampp\htdocs\cakeBlog\vendor\cakephp\cakephp\src\Core\PluginCollection.php,第 140 行]

【问题讨论】:

  • cakephp 使用的是什么版本?
  • 添加这一行 Plugin::load('DebugKit', ['bootstrap' => true]);在 /config/bootstrap.php 然后再试一次

标签: php cakephp cakephp-3.0 cakephp-bake cake-bake


【解决方案1】:

在以下目录中使用以下代码

配置/bootstrap.php

if (Configure::read('debug')) {
    Configure::write('DebugKit', ['forceEnable' => true]);
    Plugin::load('DebugKit', ['bootstrap' => true]);
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-06-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-04
    • 1970-01-01
    • 2020-08-19
    • 2012-06-07
    相关资源
    最近更新 更多