douyu7879 2016-02-20 22:57
浏览 61

CakePhp3-ChartJs帮助程序加载错误

ChartJs pluing form github and loaded using plugin statement in bootstrap Plugin::load('ChartJs', ['bootstrap' => false, 'routes' => false]); and i tried to load this plugin's helper in appview src\View\AppView.php like this

public function initialize()
    {
        parent::initialize();
        $this->loadHelper('Html');
        $this->loadHelper('ChartJs.Chartjs');
    }

and pls find the image to know the plugin file structure pic one but is show error like ths when i load other pages

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

guys pls help me to sort out ths issue and pls help me how to load helper on fly

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 Vue3 大型图片数据拖动排序
    • ¥15 划分vlan后不通了
    • ¥15 GDI处理通道视频时总是带有白色锯齿
    • ¥20 用雷电模拟器安装百达屋apk一直闪退
    • ¥15 算能科技20240506咨询(拒绝大模型回答)
    • ¥15 自适应 AR 模型 参数估计Matlab程序
    • ¥100 角动量包络面如何用MATLAB绘制
    • ¥15 merge函数占用内存过大
    • ¥15 使用EMD去噪处理RML2016数据集时候的原理
    • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大