Re: Model/controller naming question - object name ends in 's' :

2008-01-14 Thread J.B.
If you specify $this-name in the model and controller, and the variable $this-useTable in the model, you can use which names of the database table, model and controller you'd ever want, without using custom inflection. E.g. I have a database table named news with the model named News and the

Re: Model/controller naming question - object name ends in 's' :

2008-01-14 Thread Tim
Thanks Sean and JB, I used custom inflection as I saw that message first, it's all working great :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Model/controller naming question - object name ends in 's' :

2008-01-13 Thread SeanW
I think you want to look at custom inflection: http://tempdocs.cakephp.org/#TOC41977 And yes, the plural of lens is lenses. Sean On Jan 12, 4:08 pm, Tim [EMAIL PROTECTED] wrote: Hi all, I'm a newbie to CakePHP, and a relative newbie to php. CakePHP looks like just what I was looking for

Model/controller naming question - object name ends in 's' :

2008-01-12 Thread Tim
Hi all, I'm a newbie to CakePHP, and a relative newbie to php. CakePHP looks like just what I was looking for :) The issue is with business objects that end with the character 's'. I have a model that i'd like to call lens. That would make the controller called lenss_controller, which is only a

Re: Model/controller naming question - object name ends in 's' :

2008-01-12 Thread John David Anderson (_psychic_)
On Jan 12, 2008, at 3:08 PM, Tim wrote: Hi all, I'm a newbie to CakePHP, and a relative newbie to php. CakePHP looks like just what I was looking for :) The issue is with business objects that end with the character 's'. I have a model that i'd like to call lens. That would make the

Re: Model/controller naming question - object name ends in 's' :

2008-01-12 Thread Tim
Thanks John, i'll dig into the manual on configuration. Any hints would be most welcome. I'll look at the suggestion of lenses, but lense doesn't work so I might just configure around it. Cheers Tim On Jan 13, 1:16 pm, John David Anderson (_psychic_) [EMAIL PROTECTED] wrote: On Jan 12, 2008,