Matthew Weier O'Phinney-3 wrote:
>
>
> Let's cut to the chase:
>
> * Your controllers and actions can have camelCasing to accomodate
> multiple words
> * ON THE URL, you must specify multiple words using a word separator
> ('.' or '-')
> * VIEW SCRIPTS follow the same conventions as URLs
>
>
Great -- I like and appreciate these simple guidelines.
And, more importantly, it sounds like these guidelines will stay stable for
future releases of ZF.
Just to be clear, these guidelines for controller and action names are
different from the simpler suggestions in the ZF docs.
The ZF docs say the default is "Title-case" (which I think really means
Initial character is capitalized) for both controllers and actions:
http://framework.zend.com/manual/en/zend.controller.html#zend.controller.quickstart.go.controller
http://framework.zend.com/manual/en/zend.controller.html#zend.controller.quickstart.go.controller
Also, Rob Allen's ZF tutorial also describes names with the Initial
character as the only capitialized character and then refers to the ZF docs
for more complicated naming (see
http://akrabat.com/wp-content/uploads/getting-started-with-zend-framework-151.pdf
tutorial v1.5.1 p 6 Setting up the Controller).
What I'm verifying in this post is that camelCase is the recommended naming
convention for multiple word controller and action names, and that this is a
stable recommendation going forward.
--
View this message in context:
http://www.nabble.com/Naming-Recommendation-for-Controllers%2C-Actions%2C-and-URLs-using-zend_controller-tp16362913p16366498.html
Sent from the Zend Framework mailing list archive at Nabble.com.