Revision 1874 - New 'form' shell command error

Hi Guys,

Just wanted to run this by you before I report it as a bug because I’m probably doing something wrong :)

I wanted to try out the new shell command - ‘form’ but when I try it, I get the following error:

>> form Clients protected.views.clientform.client

Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\formyii\framework\cli\commands ShellCommand.php(147) : eval()'d code on line 1

Call Stack:

    0.0006     321616   1. {main}() C:\xampp\htdocs\formyii\protected\yiic:0

    0.0017     324288   2. require_once('C:\xampp\htdocs\formyii\protected\yiic.php') C:\xampp\htdocs\formyii\protected\yiic:4

    0.0044     333344   3. require_once('C:\xampp\htdocs\formyii\framework\yiic.php') C:\xampp\htdocs\formyii\protected\yiic.php:7

    0.0693    1086776   4. CApplication->run() C:\xampp\htdocs\formyii\framework\yiic.php:30

    0.0694    1086776   5. CConsoleApplication->processRequest() C:\xampp\htdocs\formyii\framework\base\CApplication.php:135

    0.0694    1086776   6. CConsoleCommandRunner->run() C:\xampp\htdocs\formyii\framework\console\CConsoleApplication.php:88

    0.0789    1207008   7. ShellCommand->run() C:\xampp\htdocs\formyii\framework\console\CConsoleCommandRunner.php:62

    1.9149    4907840   8. ShellCommand->runShell() C:\xampp\htdocs\formyii\framework\cli\commands\ShellCommand.php:99

Has anyone tried this yet and got different results?

Are you using trunk? I couldn’t reproduce the issue.

Hi Qiang, thanks for looking into it.

Yes I updated my SVN copy from the trunk yesterday.

PHP 5.3 & MySQL on Apache, Windows.

Other shell commands work just fine but I get error with ‘form’ using it against an existing model.

Hi Qiang,

This issue is fixed in revision 1887 :)