I am using cakephp 3.0 and want to write some admin actions and some users actions in users controller. admin actions should be accessible from admin routing and user actions should be accessible without admin routing
I know in cakephp 3.0 for admin, users controller should be in
src/Controller/Admin/UsersController.php
and for normal users, users controller should be in
src/Controller/UsersController.php
Now the confusion is, Is this correct to put same controller name is in 2 different directories or am I missing something?
Thanks in advance.