It uses rules that are formed with regex. Please refer to the api at
http://api.cakephp.org/1.2/class_inflector.html#85a701afa2784de6a64b141c2647d5ae.
It's quite interesting actually.

On Wed, Jun 4, 2008 at 3:19 PM, teum <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I was just wondering how come Cake would automatically know that a
> "Person" model corresponds to a "people" table in your Db as it is
> said here : http://book.cakephp.org/view/26/view-conventions. It may
> be easy with a "Fruit" model and a "fruits" table because Cake can
> look for a table matching the following pattern : "[model name]s", but
> for Person/people I really wonder how it can work (if it does).
>
> And what about naming models and tables in an other language than
> English ?
>
> Thanks in advance for your answers.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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