Home >Backend Development >PHP Tutorial >Yii application creation and error handling under Windows, windowsyii_PHP tutorial

Yii application creation and error handling under Windows, windowsyii_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:05:55914browse

Yii application creation and error handling under Windows, windowsyii

Under Win7, run cmd.exe as administrator

This example is in the wamp environment:
Switch to the d drive, and then switch to the framework directory.............
1--C :windowssystem32>
d:

2--D:>cd D:wampwwwyiiframework

Run the yiic command
3--D:wampwwwyiiframework>yiic

4---In the yii directory, Create an application with the directory name newstar
D:wampwwwyiiframework>yiic webapp ../newstar


---Error when executing yiic-------
1. Modify the yiic.bat file
Open the yii installation directory d:/www/yii/framework/yiic.bat. Open yiic.bat with Notepad and there is the following line:
if "%PHP_COMMAND%" == "" set PHP_COMMAND= php.exe
Because php.exe was not added to the Windows environment variables during WAMP installation, yiic could not find it. You need to assign the absolute path of php.exe to PHP_COMMAND.
(Your php installation path)
"%PHP_COMMAND%" == "" set PHP_COMMAND= D:wampbinphpphp5.3.10php.exe

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/961720.htmlTechArticleYii application creation and error handling under Windows, windowsyii Under Win7, run cmd.exe as an administrator. This example is In wamp environment: switch to drive d, and then switch to the framework directory............. 1--C...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn