cakephp creates misspelled model class and it's filename
I have a database table named 'abuses'. While baking the application the bake command named it's controller classname as "abuses" and filename as "abuses_controller.php" but when I baked the model the filename was "开发者_开发百科Abus.php" and classname was "Abus".
Is that a bug in cakePHP ? or did I miss something ?
Has anyone encountered the same problem yet ?
Thanks
You can add your custom inflection rules if the Cake Inflector gets it wrong (it's only human, and a singular '~e' is probably uncommon for a plural '~es'):
http://book.cakephp.org/view/953/Inflections
its due to inflections check this http://book.cakephp.org/view/953/Inflections
Take a look at CakePHP's Inflector class.
精彩评论