Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pavel-dovgoshiya opened this issue Apr 15, 2021 · 1 comment
Open

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

pavel-dovgoshiya opened this issue Apr 15, 2021 · 1 comment

Comments

@pavel-dovgoshiya
Copy link

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
Copy link
Owner

Hi @pavel-dovgoshiya

Did you solve the problem or you need help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants