Friday, May 29, 2015

cakephp 3.0 same controller name for admin and users

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?

This question is also asked on stackoverflow by me

http://stackoverflow.com/questions/30536972/cakephp-3-0-same-controller-name-for-admin-and-users

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: