Home > php教程 > php手册 > Windows下Yii创建应用及出错处理,windowsyii

Windows下Yii创建应用及出错处理,windowsyii

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 09:14:02
Original
1044 people have browsed it

Windows下Yii创建应用及出错处理,windowsyii

Win7下,以管理员身份运行cmd.exe

本例是在wamp环境下:
切换到d盘,再切换到framework目录.............
1--C:\windows\system32>
d:

2--D:\>cd    D:\wamp\www\yii\framework

 运行yiic命令
3--D:\wamp\www\yii\framework>yiic

4---在yii目录下,创建目录名为 newstar的应用
D:\wamp\www\yii\framework>yiic      webapp  ../newstar


---执行yiic出错-------
1、修改yiic.bat文件
打开yii安装目录d:/www/yii/framework/yiic.bat,yiic.bat用记事本打开有如下一行:
if "%PHP_COMMAND%" == "" set PHP_COMMAND=  php.exe
由于WAMP安装时没有将php.exe加入到Windows环境变量中,yiic找不到。需要将php.exe的绝对路径赋给PHP_COMMAND即可。
(你的php安装路径)
    "%PHP_COMMAND%" == "" set PHP_COMMAND= D:\wamp\bin\php\php5.3.10\php.exe

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template