Where is the appropriate place to define inflector rules in CakePHP 1.3?

Posted by Daniel Wright on Stack Overflow See other posts from Stack Overflow or by Daniel Wright
Published on 2010-05-18T15:48:07Z Indexed on 2010/05/18 20:00 UTC
Read the original article Hit count: 249

Filed under:
|
|

In CakePHP 1.2, custom inflector rules could be defined in a file app/config/inflections.php. This file was removed in CakePHP 1.3. Instead, the documentation prescribes using the Inflector::rules function to load custom inflections.

There's adequate documentation of how to define the custom inflections themselves, but the documentation gives no context—where to use Inflector::rules.

Should any custom inflections be defined in the bootstrap.php script? At the top of applicable corresponding controllers? Somewhere else?

See also:

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about cakephp-1.3