Starting with YII 1.1.x in Windows Environment (WAMP)

You are viewing revision #11 of this wiki article.
This version may not be up to date with the latest version.
You may want to view the differences to the latest version.

next (#12) »

  1. Download
  2. Set Environment Variables
  3. Create Application
  4. Some Use Full Links

As we know YII is the Leading Framework of PHP. Lots of new developers are starting to use YII day by day. Most of the beginners are little bit confused with how to start with YII . I think this note will help them. Follow the simple steps To run a Yii-powered Web application, you need a Web server that supports PHP 5.1.0.

Download

Download the YII framework from yiiframework.com. Link http://www.yiiframework.com/download/

Download zip file . Extract to /wamp/www folder and Rename it to yii. After installing Yii, you may want to verify that your server satisfies Yii's requirements. You can do so by accessing the requirement checker script via the following URL in a Web browser:

http://hostname/path/to/yii/requirements/index.php

Set Environment Variables

For Creating YII Application using yii webapp command from the command prompt , we need to set the paths of php and yii at Window Environment Variables .

  • Register the path were your php.exe reside at Window Environment Variables (e.g C:\Wamp2.4\bin\php\php5.4.16;)

  • Register the path were your yiic reside at Window Environment Variables (e.g C:\wamp\www\yii\framework; )

To set Environment Variables Right click MyComputer > Properties > Advanced System settings > Environment Variables > select Path > Edit >

Example C:\wamp\www\yii\framework; C:\wamp\bin\php\php5.4.16** ;

** Your php path Save the paths. Now we can create yii application from command prompt using yiic webapp command.

Create Application

For yii application from command prompt using yiic webapp command In command prompt goto C:\wamp\www ( Where the application want to create ) . Execute command yiic , Now you can see the options message ,migrate, shell, webapp , webapp is used to create new yii application . So execute command

yiic webapp Application-name

Example

yiic webapp yiitest

Select yes , Your application is created as C:\wamp\www\test .
The basic application is ready you can see it by following URL in a Web browser:

http://hostname/ Application-name

Example

http://localhost/yiitest

Thats it. Yes It Is .

Some Use Full Links

Some Use Full Links for setting up the application

http://www.yiiframework.com/wiki/423/installing-yii-users-and-rights-to-newly-created-yii-app/

http://www.yiiframework.com/doc/guide/1.1/en/quickstart.installation

http://www.yiiframework.com/doc/guide/1.1/en/quickstart.first-app

http://www.yiiframework.com/tour/

3 0
5 followers
Viewed: 31 535 times
Version: Unknown (update)
Category: Tutorials
Tags: newbie, Yii, yiic
Written by: Rajith R
Last updated by: Rajith R
Created on: Jul 7, 2014
Last updated: 10 years ago
Update Article

Revisions

View all history

Related Articles