In Windows, Yii creates an application and handles errors, windowsyii. In Windows, yiicreate an application and handle errors. in Windows, run cmd.exe with the administrator ID. In this example, in the wamp environment: Switch to disk D, switch to the framework directory... ...... 1--C in Windows, create an application and handle errors. in Windows, run Windows II.
Run cmd.exe with the administrator ID in Win7.
In this example, in the wamp environment:
Switch to disk D, and then switch to the framework directory .............
1--C: \ windows \ system32>D:
2--D: \>Cd D: \ wamp \ www \ yii \ framework
Run the yiic command
3--D: \ wamp \ www \ yii \ framework>Yiic
4 --- create an application named newstar under the yii Directory
D: \ wamp \ www \ yii \ framework>Yiic webapp ../newstar
--- An error occurred while executing yiic.-------
1. modify the yiic. bat file
Open the yii installation directory d:/www/yii/framework/yiic. bat, and use notepad to open the following line:
If "% PHP_COMMAND %" = "" set PHP_COMMAND =Php.exe
Because php.exe is not added to Windows environment variables during wampinstallation, yiic cannot be found. Assign the absolute path of php.exe to PHP_COMMAND.
(Your php Installation Path)
"% PHP_COMMAND %" = "" set PHP_COMMAND =D: \ wamp \ bin \ php \ php5.3.10 \ php.exe
Run cmd.exe with the administrator ID in Win7. this example is in the wamp environment: switch to the D disk, and then switch to the framework directory...