Windows Yii creation application and error handling, WINDOWSYII
Win7, run as Administrator cmd.exe
This example is in the WAMP environment:
Switch to the D drive, 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---Under the Yii directory, create an app with the directory named Newstar
d:\wamp\www\yii\framework>Yiic webapp. /newstar
---Error executing YIIC -------
1. Modify the Yiic.bat file
Open the Yii installation directory D:/www/yii/framework/yiic.bat,yiic.bat with Notepad open with the following line:
If "%php_command%" = = "" Set php_command= php.exe
The YIIC was not found because Wamp was installed without adding php.exe to the Windows environment variable. You need to assign the absolute path of the Php.exe to the Php_command.
(Your PHP installation path)
"%php_command%" = "" "Set php_command= D:\wamp\bin\php\php5.3.10\php.exe
http://www.bkjia.com/PHPjc/961720.html www.bkjia.com true http://www.bkjia.com/PHPjc/961720.html techarticle Windows Yii create application and error handling, Windowsyii Win7, run as administrator cmd.exe This example is in the WAMP environment: switch to the D drive, then switch to the framework directory .... 1--c ...