rules - CakePHP problem with inflections -


i have problem inflections. created model sentsms , controller called sentsmsescontroller. doesn't work i've tried use inflector::rules

inflector::rules('plural', array(     'rules' => array('/^(sms)$/i' => '\1es'),     'irregular' => array('sms' => 'smses') ));  inflector::rules('singular', array(     'rules' => array('/^(sms)es$/i' => '\1'),     'irregular' => array('smses' => 'sms') )); 

but did not help.

i'm not familiar custom inflections, looks rules exact match of "sms". since model called "sentsms" it'll never match custom rules. try removing ^ character (start of line) regex or use full name of model.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -