In cakephp 3.6 bake, it worked normally, but in cakephp 3.7 it seems that it can not find the plugin’s Component.
Error: [Error] Class ‘Atgrid \ Controller \ Component \ JqgridUtilComponent’ not found in I: \ cakephp3 \ haccp \ haccp \ tmp \ bake \ Bake-Element-Controller-sindex-ctp.php on line 104
Stack Trace:
The component to use is “Atgrid \ Controller \ Component \ JqgridUtilComponent”.
The plugin is called “plugin / Atgrid / src / Template / Bake / Element / Controller / sindex.ctp”.
“Source code”
use Cake \ ORM \ TableRegistry;
use Cake \ Controller \ Component;
use Cake \ Controller \ ComponentRegistry;
use Atgrid \ Controller \ Component \ JaNameComponent;
use Atgrid \ Controller \ Component \ JqgridUtilComponent;
$ set_compact = [];
error ↓
$ jqgridUtil = new JqgridUtilComponent (new ComponentRegistry ());
The component to be called.
namespace Atgrid \ Controller \ Component;
use Cake \ Controller \ Component;
use Cake \ ORM \ TableRegistry;
/ **
- Components used by jqGrid
- /
class JqgridUtilComponent extends Component {
public $ components = [‘Atgrid.JaName’];
I set loading of plugin into bootstrap.php.
$ this-> addPlugin (‘Atgrid’, [‘console’ => true, ‘bootstrap’ => true, ‘routes’ => true]);
I set plugin load to Application.php, but it shows the same error display.
class Application extends BaseApplication
{
/ **
* {@ inheritDoc}
* /
public function bootstrap ()
{
// Call parent to load bootstrap from files.
parent :: bootstrap ();
$ this -> addPlugin (‘Atgrid’);
Is something wrong with setting?
Help me.