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 controller named "NewsController"... On Jan 12, 11: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 :) > > 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 problem because > it appears in the URL. It would also mean a database table called > "lenss". Is there a way to give everything sensible names? > > Right now my solution is to call the model "len", the controller > "lens_controller", and the database table "lens". > > Thanks > > Tim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
