arodu / cakelte

AdminLTE plugin for CakePHP
https://packagist.org/packages/arodu/cakelte
MIT License
28 stars 6 forks source link

CakeLteHelper could not be found. #68

Closed himanshuvora closed 11 months ago

himanshuvora commented 1 year ago

I have followed the steps given here, but I am getting this error.

Missing Helper Cake\View\Exception\MissingHelperException

I couldn't understand following,

If someone could help me, please share how to resolve this issue.

arodu commented 1 year ago

in the src/View/AppView.php you need to execute the command $this->initializeCakeLte(); there is the command that loads the helper. https://github.com/arodu/cakelte#how-to-use You can also load the CakeLteHelper manually with $this->loadHelper('CakeLte.CakeLte');

To copy the elements you need, look for them inside the vendor/arodu/cakelte/templates plugin and copy them into your project in templates/plugin/CakeLte For example, if you want to modify the layout you would do the following

cp vendor/arodu/cakelte/templates/layout/default.php templates/plugin/CakeLte/layout/default.php

About Page Debug, that's just a page to verify that the plugin is working correctly.