Friday, 4 May 2012

How to install Yii in wamp?


Follow the following steps for installation:

* goto “My Computer”

* Right Click and select Properties

* You will see “System Properties” window

* Select “Advanced”tab

* In “Advanced” tab, click on “Environment Variables”

* Select “Path” in “System Variables” section

* Click on “Edit”  “Path” in “System Variables” section

* “Edit System Varibale” window will appear with “Variable name” and “Variable value” fields

* Enter “D:\wamp\bin\php\php5 at the end without double quotes.

* Click on OK

* Open dos prompt

* D:\>cd wamp\www

* D:\wamp\www>mkdir myproject

* Download yii framework and put it into www directory

* D:\wamp\www>cd yii\framework

* D:\wamp\www\yii\framework> yiic webapp D:\wamp\www\myproject
Create a Web application under ‘D:\wamp\www\myproject’? [Yes|No] y

Your application has been created successfully under C:\wamp\www\myYii.

Thats all. now You are ready to use your application by accessing the URL : http://localhost/myproject/


1 comment:

  1. Nice tutorial on Yii. It is great to see someone publishing quality content on the framework. We have been working on an open source CRM application that is written in PHP utilizing JQuery, Yii, and RedBeanPHP and relies heavily on test driven development.

    Zurmo might be one of the most complex projects on Yii to date. Right now, we have 1000+ unit tests running across eight server configurations. We utilize selenium as well for a nice set of functional tests too. It would be incredibly helpful to get your technical feedback and recommendations so that we can improve the application. Take a look and let me know what you think: