CakePHP 1.3 kinks?

Where to put custom kinks in CakePHP 1.3?

+5
source share
2 answers

inflections.php was removed in CakePHP 1.3, I took a section from the migration guide 1.3 that should explain:

Loading custom inflections

inflections.php was deleted, it was an unnecessary file, and related functions were reorganized into a method to increase their flexibility. Now you are using

Inflector::rules() to load custom inflections.
Inflector::rules('singular', array(
    'rules' => array('/^(bil)er$/i' => '\1', '/^(inflec|contribu)tors$/i' => '\1ta'),
    'uninflected' => array('singulars'),
    'irregular' => array('spins' => 'spinor')
));

Combines the provided rules in sets of infections, and the added rules take precedence over the basic rules.

Source

+3
source

Its under / app / config / inflections.php.

0
source

All Articles