I have a plugin called ‘Users’, with a ‘Users’ controller. I’m prefix routing a ‘Client’ prefix. The plugin loads, but the prefix controller is not found.
First of all, your folder structure is wrong.
It should be plugins/Users/src/Controller/Client/UsersController.php (note the addition of src).
Second, I recommend to use a vendor namespace as well: plugins/MyCompany/Users/...
Then you need to define the UsersController like so:
namespace MyCompany/Users/Controller/Client/UsersController;
use MyCompany/Users/Controller/AppController.php;
class UsersController extends AppController {
// magic
}
then you should make a route that points to it instead of that link think you have (trust me, it’ll get spaghetti that way)