I use CakePHP 2.1 and you need to define an Inflector rule for the word "Software" because CakePHP converts all links to the plural form "Software", which is incorrect. Cake searches for SoftwaresController and a table called Softwares.
I know to create a rule in the boot belt and read this link.
http://book.cakephp.org/2.0/en/development/configuration.html#inflection-configuration
I also looked at the lib / Cake / Inflector.php file, but cannot understand the syntax for defining the rule. It looks like a regular expression. Here are some examples of rules.
'/(s)tatus$/i' => '\1\2tatuses',
'/(quiz)$/i' => '\1zes',
'/^(ox)$/i' => '\1\2en',
'/([m|l])ouse$/i' => '\1ice',
'/(matr|vert|ind)(ix|ex)$/i' => '\1ices',
'/(x|ch|ss|sh)$/i' => '\1es',
What will be the correct code to determine the correctness of the Unlector software?
EDIT:
Inflector::rules('singular', array('rules'=>array('/software/'=>'software'),'irregular'=>array('software'=>'software'),'uninflected'=>array('software')));
, SoftwareController, Cake , Softwares, " " . , , - , .