转自国外的一篇文档

Yii is a new php framework which is going to be used widely in the near future.Here i am going to guide how to install Yii framework in xampp on windows platform.

Step1
Download the frame work from here
Step2
Unpack it and and put the folder in C:\xampp\htdocs\yii (or the path you installed xampp).
Step3
Start the Xampp control panel and start the apache server and mysql
Win 7 XAmpp yii 环境配置

Step4
Open the browser and got to
http://localhost/yii/requirements/
Win 7 XAmpp yii 环境配置
if you put folder correctly in htdocs you should be getting the above page

Creating web app from cmd windows(comand promtp)

How to use the yiic command to bootstrap the creation of a new
Yii application

Step1
  1. right click "my computer"
  2. go to "system properties" under "advanced" tab, click on "environment variables"
  3. under "system variables" find for the variable named "PATH" and click on "Edit" button
in "Variable Value" append the php.exe path with a semi-colon like below
;C:\xampp\php

Win 7 XAmpp yii 环境配置

if you dont do the above step correctly you will get this error "php.exe is not recognized as an internal or external command"
Step2
open cmd and enter
cd c:\xampp\htdocs\yii\framework

then enter

yiic webapp ..\newapp

you will prompted with

Win 7 XAmpp yii 环境配置
 

 

 安装完成后,输入http://localhost/yii/newapp 就可以查看这个demo网站了。

 

为了方便的运行Yii的命令,最好将YII framework目录加入Windows 环境变量里 

 

 

相关文章:

  • 2021-06-11
  • 2021-09-11
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
猜你喜欢
  • 2022-02-19
  • 2021-07-03
  • 2022-01-01
  • 2022-12-23
  • 2021-12-15
  • 2021-06-21
相关资源
相似解决方案