The past several years have marked a significant revolution of frameworks , and almost everyone involved in web application development these days is a part of a new generation of this revolution “don’t misunderstand me it’s not Jan25’s revolution ”. A modern, flexible, and extensible framework is almost as essential a tool as the programming language itself to today’s web developer. Moreover, when the two are particularly complementary, the results are an extremely powerful toolkit: Java and Spring, Ruby and Rails, C# and .NET, and PHP and Yii.
Yii is founded by Qiang Xue who started the development of this open source framework on January 1st, 2008. On December 3rd, 2008, Yii 1.0 was officially released and as of March 14th, 2010, the latest production-ready version is 1.1.2. It has a growing development team and continues to gain popularity among PHP developers everyday.
Yii is an acronym for (Yes,It is) which means it’s so easy ,extensible and efficient.Written in php5 with the principles of OOP and implements the MVC pattern.
Yii is packed with features to help you meet those high demands placed on today’s web applications. AJAX- enabled widgets, web service integration, enforcement of an MVC architecture, DAO and relational Active Record database layer, sophisticated caching, hierarchical role-based access control, theming, internationalization (I18N), and localization (L10N), are just the tip of the Yii iceberg. As of version 1.1, the core framework is now packaged with an official extension library called Zii. These extensions are developed and maintained by the core framework team members who continue to extend Yii’s core feature set. With a deep community of users who are also contributing by writing Yii extensions, the overall feature set available to a Yii powered application is growing daily. For a complete list of all available user contributed extensions, see http://www.yiiframework.com/extensions/.
This is a brief explanation of the framework . let’s write our famous program “Hello World!”.
Hello World :
First , you have to download the framework from this link: http://www.yiiframework.com/download/
After downloading it , extract it in the place of your server “I use Apache server so I’ll put them in the www directory”
After extracting it , go to this link to know the framework meet the minimum requirements to work or not “http://localhost/yii/requirements/”. You should see this page:
If you see your requirements like this , you’re ready to write your code.
-Open terminal , enter the place of the framework and then type the following command:
$ framework/ : php yiic webapp /var/www
Create a Web application under ‘/var/www/yii/framework/demo‘? [yes|no] yes
And it’ll generate some files necessary for the application. After generating the files , go to the webapp place from the browser , type
and you should see this:
This is a brief start to develop web apps using Yii framework . I’ll try to make some articles about it in CATazinelive soon to cover how it works and more apps using yii.
For more tutorials : http://www.yiiframework.com/tutorials/
How to contribute in this project : http://www.yiiframework.com/contribute/
Forum : http://www.yiiframework.com/forum/
Live chat (IRC channel) : #yii