Model Generator error in preview


I’m new to yii and would like to ask for help on how to address my trouble. I’ve been following a tutorial on using Gii Model Generator. However, when i click the preview button it gave me

Fatal error: Call to undefined function singularize() in C:\wamp\yii\framework\gii\generators\model\templates\default\model.php on line 96

any help will be appreciated. :rolleyes: