yii framework is the most popular Php framework in the web for web 2.0 development. This article guide u to start your new php application from scratch using yii framework. Let’s download the framework from the website, always chose the Latest Release e.g 1.1.9 (Jan 1, 2012) .Extract the zip files to your localhost and rename the folder as your wish. Here i wish to rename my framework as (yiifw), thats all now checks your server configuration meets the requirements for running Yii Web applications or not . To check the requirements open the http://localhost/yiifw/requirements/ path in your browser. if it passed all result, you are successfully setup your yii framework development environment. for detail visit http://www.yiiframework.com/doc/guide/1.1/en/quickstart.installation .now i will saw you step by step how to create a new project.
step-1:Open your terminal and type the following code or CD to your framework folder.
Step-2: Now tell yiic command line program to generate the Yii application files for your new project. run the following command in your terminal.
./framework/yiic webapp /home/username/public_html/yiifw
that’s all check your localhost framework folder, the yiic command line program already generate your new project skeleton in MVC structure called newproject.Now you can check your application in your localhost trough the link: http://localhost/yiifw/newproject/
Now your new project will look like the following image.