Create a new project using Yii command line

on 04 April 2012
Getting started with Yii? yes, you made the right choice of PHP framework to develop powerful web apps in no time and absolute professionalism. Yii is a high-performance PHP framework best for developing large-scale Web applications. Before you get started with the Yii framework, you must download a copy of the framework.




Click here
to download directly.



Click here
to download from sourceforge.


Now unzip the package to your webroot. Example in wamp server, unzip to "wamp/www/yii" directory. The structure should look like this :

Now you just need to enter the following command using command line:

yiic webapp mywebsite

You will be asked for confirmation of creating a directory structure, press 'Y' then.

Now your project will be ready, with the following directory structure in your webroot directory:


Now you can access your webapp created by navigating to the following url on your browser:

http://localhost/mywebsite

This was the getting started tutorial for creating a new project using the Yii Framework... keep checking for more tutorials. Thanks.

0 comments:

Post a Comment