Friday 25 July 2014

How to create Yii Web application and new info about Yii Framework

About Yii
Yii is a high-performance PHP framework best for developing Web 2.0 applications.
Yii helps Web developers build complex applications and deliver them on-time.
Yii is pronounced as Yee or [ji:], and is an acroynym for "Yes It Is!".
Yii 1.1 is the latest stable version.
The latest version of Yii 2 is 2.0.0 beta, released on April 13, 2014.
Yii 2.0 is not ready for production use yet. It is currently under heavy development.

How to set up yii web application in localhost.

1. Down load the latest yii framework (yii version1.1) from below link
   http://www.yiiframework.com/download/

2. Extract the code from zip or gaiz file,
you will get following folders,
demos
framework,
requirements
and following four files
CHNAGELOG
LICENSE
README
UPGRADE

3. Put all files to the root level in you localhost.
for the xampp user they can place these files under the htdocs folder.

4. run the below code for create the yii app (project)
Create Yii Project In Local Host With Xampp Using Command Line
Step 1 open command line
Step 2 run below command it will create all the default structure for the project.
Here "newyiiprojectname"  is the name of the folder(project) you want to create. you can change it as per your choice.
C:\xampp\php>php C:/xampp/htdocs/framework/yiic.php webapp C:\xampp\htdocs\newyiiprojectname
once you run above command it will ask you to create a web application under the defined path with yes/no option.
here if you type yes and press enter it will create the new yii app(project) with the given folder name.

Now your application is ready. You can access it by using following link
http://localhost/newyiiprojectname/


No comments:

Post a Comment

List OF BANK PAN Numbers

List OF BANK PAN Numbers Bank/Home Loan Providers PAN Number Allahabad Bank AACCA8464F Andhra Bank AABCA7375C Axis Bank...