cakephp-adminlte-theme
cakephp-adminlte-theme copied to clipboard
Error Plugin AdminLTE could not be found. CakePHP 4.2.5
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');
}
Hi @pavel-dovgoshiya
Did you solve the problem or you need help?