crub question

I meet following error message when I try to use crub. Anyone can help?

Thanks,

root@wen:/var/www/yii/webapp/protected# ./yiic shell config/main.php

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

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

>> model Department

generate models/Department.php

generate fixtures/Department.php

generate unit/DepartmentTest.php

The following model classes are successfully generated:

Department

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

$model=Department::model()->find();


print_r($model);

>> model Employee

generate models/Employee.php

generate fixtures/Employee.php

generate unit/EmployeeTest.php

The following model classes are successfully generated:

Employee

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

$model=Employee::model()->find();


print_r($model);

>> crub Department

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

>> exit

root@wen:/var/www/yii/webapp/protected# which php

/usr/bin/php

root@wen:/var/www/yii/webapp/protected# php -v

PHP 5.3.2-1ubuntu4.2 with Suhosin-Patch (cli) (built: May 13 2010 20:03:45)

Copyright © 1997-2009 The PHP Group

Zend Engine v2.3.0, Copyright © 1998-2010 Zend Technologies

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

/Tommy

thanks