./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:
Products
If you have a ‘db’ database connection, you can test these models now with:
$model=Products::model()->find();
print_r($model);
>> 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.