Yii shell grud parse error

./yiic shell config/main.php

Yii Interactive Tool v1.1 (based on Yii v1.1.1)

Please type ‘help’ for help. Type ‘exit’ to quit.

>> model Products crm_products

unchanged models/Products.php

unchanged fixtures/crm_products.php

unchanged unit/ProductsTest.php

The following model classes are successfully generated:


If you have a ‘db’ database connection, you can test these models now with:



>> grud Products

Parse error: syntax error, unexpected T_STRING in /home/www/yii/framework/cli/commands/ShellCommand.php(147) : eval()'d code on line 1


Help please.

It’s “crud”, not “grud”.

(Create, Read/Retrieve, Update, Delete)