1

在我将插件挂钩添加到 AppController 和 bootstrap.php 中的代码后,只需设置 CakePHP 3 并得到此错误

Error: Class 'App' not found File /var/www/fastcom-portal-one/app/plugins/DebugKit/Controller/Component/ToolbarComponent.php    
Line: 16
4

3 回答 3

3

CakePHP 3 的 DebugKit 尚未更新。

于 2014-06-25T02:09:49.643 回答
2

请记住运行 bin/cake plugin assets symlink ,以便 DebugKit 能够正确加载其资产。

于 2015-06-04T08:24:43.613 回答
0

它已经被支持,使用 composer 安装它:

  "require": {
    "cakephp/debug_kit": "3.0.*-dev"
  },

从现在开始,您无需在 DebugKit 中设置AppController,只需将其添加到您的bootstrap.php文件中:

Plugin::load('DebugKit', ['bootstrap' => true]);
于 2014-08-25T19:37:35.390 回答