使用 model User 可以正常生成 models/User.php 文件
可是,使用 curd User (curd user也一样)却失败~~ 失败内容如下:
D:\htdocs\yiigen>\htdocs\SVN\yii-latest\framework\yiic shell
Yii Interactive Tool v1.0 (based on Yii v1.1rc-dev)
Please type 'help' for help. Type 'exit' to quit.
>> curd user
PHP Parse error:  syntax error, unexpected T_STRING in D:\htdocs\SVN\yii-latest\
framework\cli\commands\ShellCommand.php(145) : eval()'d code on line 1
PHP Stack trace:
PHP   1. {main}() D:\htdocs\SVN\yii-latest\framework\yiic:0
PHP   2. require_once() D:\htdocs\SVN\yii-latest\framework\yiic:15
PHP   3. CApplication->run() D:\htdocs\SVN\yii-latest\framework\yiic.php:31
PHP   4. CConsoleApplication->processRequest() D:\htdocs\SVN\yii-latest\framewor
k\base\CApplication.php:135
PHP   5. CConsoleCommandRunner->run() D:\htdocs\SVN\yii-latest\framework\console
\CConsoleApplication.php:88
PHP   6. ShellCommand->run() D:\htdocs\SVN\yii-latest\framework\console\CConsole
CommandRunner.php:62
PHP   7. ShellCommand->runShell() D:\htdocs\SVN\yii-latest\framework\cli\command
s\ShellCommand.php:99
Parse error: syntax error, unexpected T_STRING in D:\htdocs\SVN\yii-latest\frame
work\cli\commands\ShellCommand.php(145) : eval()'d code on line 1
Call Stack:
    0.0012      49696   1. {main}() D:\htdocs\SVN\yii-latest\framework\yiic:0
    0.0029      59480   2. require_once('D:\htdocs\SVN\yii-latest\framework\yiic
.php') D:\htdocs\SVN\yii-latest\framework\yiic:15
    0.0241     851248   3. CApplication->run() D:\htdocs\SVN\yii-latest\framewor
k\yiic.php:31
    0.0241     851752   4. CConsoleApplication->processRequest() D:\htdocs\SVN\y
ii-latest\framework\base\CApplication.php:135
    0.0241     851896   5. CConsoleCommandRunner->run() D:\htdocs\SVN\yii-latest
\framework\console\CConsoleApplication.php:88
    0.0287     975656   6. ShellCommand->run() D:\htdocs\SVN\yii-latest\framewor
k\console\CConsoleCommandRunner.php:62
    0.0917    3252224   7. ShellCommand->runShell() D:\htdocs\SVN\yii-latest\fra
mework\cli\commands\ShellCommand.php:99
[size="6"][color="#2E8B57"]原来是 crud User[/color][/size]