缺少组件(即使它存在)

时间:2015-04-10 17:32:36

标签: cakephp plugins components cakephp-3.0

我正在尝试使用此插件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

什么似乎是问题?

0 个答案:

没有答案