Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/292.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
CakePhp3 ChartJs帮助程序加载错误_Php_Github_Cakephp 3.0 - Fatal编程技术网

CakePhp3 ChartJs帮助程序加载错误

CakePhp3 ChartJs帮助程序加载错误,php,github,cakephp-3.0,Php,Github,Cakephp 3.0,ChartJs pluging表单github,并使用bootstrap plugin::load中的plugin语句加载('ChartJs',['bootstrap'=>false,'routes'=>false]);我试着像这样在appview src\View\appview.php中加载这个插件的助手 public function initialize() { parent::initialize(); $this->loadHelper(

ChartJs pluging表单github,并使用bootstrap plugin::load中的plugin语句加载('ChartJs',['bootstrap'=>false,'routes'=>false]);我试着像这样在appview src\View\appview.php中加载这个插件的助手

public function initialize()
    {
        parent::initialize();
        $this->loadHelper('Html');
        $this->loadHelper('ChartJs.Chartjs');
    }
请找到图片,了解插件文件结构 但当我加载其他页面时,显示的错误是否与此类似

Fatal error: [Cake\View\Exception\MissingHelperException] Helper class hartjsHelper could not be found. #0 C:\xampp\htdocs\dashboard\dboard\vendor\cakephp\cakephp\src\Core\ObjectRegistry.php(91): Cake\View\HelperRegistry->_throwMissingClassError('Chartjs', 'ChartJs') #1 C:\xampp\htdocs\dashboard\dboard\vendor\cakephp\cakephp\src\View\View.php(1002): Cake\Core\ObjectRegistry->load('ChartJs.Chartjs', Array) #2 C:\xampp\htdocs\dashboard\dboard\src\View\AppView.php(44): Cake\View\View->loadHelper('ChartJs.Chartjs') #3 C:\xampp\htdocs\dashboard\dboard\vendor\cakephp\cakephp\src\View\View.php(336): App\View\AppView->initialize() #4 C:\xampp\htdocs\dashboard\dboard\vendor\cakephp\cakephp\src\View\ViewBuilder.php(350): Cake\View\View->__construct(Object(Cake\Network\Request), Object(Cake\Network\Response), Object(Cake\Event\EventManager), Array) #5 C:\xampp\htdocs\dashboard\dboard\vendor\cakephp\cakephp\src\View\ViewVarsTrait.php(119): Cake\View\ViewBuilder->build(Array, Object(Cake\Network\Request), Object(Cake\Network\Response in C:\xampp\htdocs\dashboard\dboard\vendor\cakephp\cakephp\src\Error\ErrorHandler.php on line 156

伙计们,请帮我解决这个问题,并帮助我如何动态加载helper

公共函数initialize(){parent::initialize();$this->loadHelper(['Html','ChartJs']);//或者$this->loadHelper(['Html','ChartJs.ChartJs']);}
hi-Anant插件名称不是HTML。.插件名称是ChartJs stats y,我用$this->loadHelper('ChartJs.ChartJs')尝试过;这是$this->loadHelper('Html');我试图加载inbuild html helper,它工作正常..但这不起作用$this->loadHelper('ChartJs.ChartJs');我的问题是ChartJsHelper can没有加载..因此我将通过composer.json中的自动加载来加载它。
public function initialize(){parent::initialize();$this->loadHelper(['Html','ChartJs']);//或$this->loadHelper(['Html','ChartJs ChartJs']);}
hi-Anant插件名称不是HTML。.插件名称是ChartJs stats y,我用$this->loadHelper('ChartJs.ChartJs')尝试过;这是$this->loadHelper('Html');我试图加载inbuild html helper,它工作正常..但这不起作用$this->loadHelper('ChartJs.ChartJs');我的问题是ChartJsHelper can没有加载..所以我将通过composer.json中的自动加载来加载它