解决方案yii/framework/yiic.bat,修改 if "%PHP_COMMAND%" == "" set PHP_COMMAND=php.exeif "%PHP_COMMAND%" == "" set PHP_COMMAND=D:\wamp\php\php.exe 关掉dos窗口 再打 输入 yiic webapp XX