ChartJs形式github并在bootstrap中使用plugin语句加载Plugin :: load('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
伙计们请帮我解决这个问题,请帮我解决如何在飞行中加载助手