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

Reply via email to