我正在尝试使用此插件https://github.com/burzum/cakephp-user-tools
当我尝试访问http://localhost/buildzero/test/register
时它出现了:
Burzum/UserTools.UserToolComponent could not be found.
Make sure your plugin was loaded from config\bootstrap.php and Composer is able to autoload its classes, see Loading a plugin and Plugins - autoloading plugin classes
Error: Create the class UserToolComponent below in file: C:/wamp/www/buildzero/vendor/burzum/cakephp-user-tools/src\Controller\Component\UserToolComponent.php
即使该文件存在
C:\wamp\www\buildzero\vendor\burzum\cakephp-user-tools\src\Controller\Component\UserToolComponent.php
我已按照安装指南
"burzum/cakephp-user-tools": "dev-develop"
被置于composer.json
中的“require”下,并且所有依赖项都已更新。
我使用
制作了表格bin/cake Migrations.migrations migrate -p Burzum/UserTools
我的TestController.php看起来像
<?php
namespace App\Controller;
use App\Controller\AppController;
use Cake\Event\Event;
class TestController extends AppController
{
public $components = array(
'Burzum/UserTools.UserTool'
);
}
我已在Plugin::load('Burzum/UserTools');
config\bootstrap.php
什么似乎是问题?