Skip to content

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

@pavel-dovgoshiya

Description

@pavel-dovgoshiya

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');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions