I am trying to create an admin plugin for my website. I baked plugin then user model and controller but when I visit /admin/users/ or /admin/users/index it always gives an error as below:
Error: Admin.UsersController could not be found.
Error: Create the class UsersController below in file: C:\xampp\htdocs\cake3\plugins\Admin\src\Controller\UsersController.php
But of course I have the files in correct locations. Any ideas what causes this problem?
Thanks a lot for helps or even efforts.
Please ask any further info
Add this line in config/bootstrap.php
Plugin::load('Admin', ['routes' => true, 'autoload' => true]);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With