On 8/11/06, JitZhang <[EMAIL PROTECTED]> wrote:
>
> how to set up a custom inflection in /app/config/inflections.php.
> Can you give me a sample?
>
> thanks!
>

if you just want to add a specific word pair, add them to the array like this:

/**
 * This is a key => value array of plural irregular words.
 * If key matches then the value is returned.
 *
 *
 */
$irregularPlural =
array(
      'atlas' => 'atlases',
      'brother' => 'brothers',
      'phenomenon' => 'phenomena'
      );


You can be more flexible with pattern matching if you wish. You really
should find that the comments*and examples* provided in the shipped
inflection file are helpful enough to get you started. Just read it
carefully.

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

Reply via email to