Friday, June 1, 2012

Re: Form Action Controller Camel Case | Cake 2.1

by convention Action needs to be Underscored for default(as its easier to call such URL in browser. However u can change it through Routing settings if u like that way. Which version of Cake ur using?

On Friday, June 1, 2012 7:30:02 PM UTC+5:30, TonyCharlotteCakePHP wrote:
Sorry if this has been asked already but I have a controller that is uppercase camelcase and when I create a form, the controller part of the action for the form is not camelcase. Instead cake separates the camelcase controller with an underscore and all lowercase. For example: my controller could be CamelCases but then in the form's action the controller would be camel_case. I figured that cake would make the form's controller "camelCase". Currently I'm just assigning the action via the url option for the create form but I'm I doing something wrong? I figured that cake would know that the controller needs to be camelcased unless I'm going about things in the wrong way.

Thanks for any help.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: