Wednesday, October 9, 2013

Re: Identical controller names

Without namespaces, I think you might end up with a class name clash, since you would have two UsersController classes trying to occupy the global name space.

Regards
Reuben Helms

On Thursday, 10 October 2013 03:29:49 UTC+10, CrotchFrog wrote:
Would it be considered bad practice to have two identical controller names? For example I was wondering about having a 'UsersController'  to keep my logic separate from 'UsersController' in one of my plugins, or would it be best to just name one or the other differently? I can foresee one or two "issues" going this route but am I missing a bigger picture? 

--
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/groups/opt_out.

No comments: