maiconpinto / cakephp-adminlte-theme

CakePHP AdminLTE Theme
http://maiconpinto.github.io/cakephp-adminlte-theme/
MIT License
172 stars 111 forks source link

Error Plugin AdminLTE could not be found. CakePHP 4.2.5 #117

Open pavel-dovgoshiya opened 3 years ago

pavel-dovgoshiya commented 3 years ago

cakephp-adminlte-theme: version 2.0.2

I have error with plugin. Problem in path.

Now defatult plugin path: plugins/AdminLTE/

For fix this i did: $this->addPlugin('AdminLTE', ['path'=>ROOT . DS . 'vendor' . DS . 'maiconpinto'. DS . 'cakephp-adminlte-theme' . DS]);

Also need to update for overrwrite templates: //src/Application.php public function beforeRender(EventInterface $event) { $this->viewBuilder()->setTheme('AdminLTE'); $this->viewBuilder()->setClassName('AdminLTE.AdminLTE'); }

maiconpinto commented 1 year ago

Hi @pavel-dovgoshiya

Did you solve the problem or you need help?