Wednesday, October 9, 2013

Re: Identical controller names

I thought better of the idea. Seems pointless to have identical names when there are so many others to choose from :) I suppose I was more curious about how it would effect the app moreso than actually creating the controllers. 

Thanks for the reply :)


On Wed, Oct 9, 2013 at 11:40 PM, Reuben <reuben.helms@gmail.com> wrote:
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 a topic in the Google Groups "CakePHP" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cake-php/7SvbTm2_MX4/unsubscribe.
To unsubscribe from this group and all its topics, 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.

--
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: