Hello guys ! PHP is a very famous and secure web programming language all over the world. This language has become very much popular among world’s web programmer for it’s various outstanding features. Frameworks are one of them. Lot of PHP frameworks have been developed and as it is a continuous process so we can hope that we will get more php frameworks in the new future. So among all of these frameworks, it becomes very much confusing for the new php programmers to choose one for them. As a beginner I also faced this problem of choosing the right one for me. After spending several hours I found one php framework suitable for me for this present time. That is yii framework. I know that there are lot of new php programmers who can not choose or does not want to choose a right framework for themselves by themselves. They go for the suggestion to their senior brother or immediate boos who uses only Codeigniter and suggest the new programmer to learn Codeigniter also. But if we just think deeply for one minute before finalizing a framework to use we can very easily find a good option, that is yii. I will not say that to learn Codeigniter is a problem, but I want to say that by giving the same effort on yii you can build a very strong bridge in between Codigniter(entry label framework) and ZF, Symfony (advanced label framework). I mean among 5 numbers yii 3 !!! .
What is YII?
YII means – Yes It Is. You can use yii framework for all scale of web programs, from medium to large scale. Yii was introduced in PHP in 2008 by Qiang Xue. And from then it has been continuously developed by the community. It is an open source framework. Main features of yii are 1. Fast 2. Secure 3. Professional. I think we all php programmers need these three things of speed, security and professionalism. Yii also very much easy to install/configure and maintain. It is well documented and has very helpful community to help. So new users may not think himself helpless. There are lot video tutorials on youtube, many tutorial web sites for this framework. There also many books on this framework. You can buy books from Nilkhet, Dhaka. “The Definitive Guide to Yii 1.1” is a good book written by Qinag Xue himself is very much popular among the yii developers. You can buy this book from Dhaka.
Anyway, before closing this article I will tell you how to install yii very easily. No beginner should go to try install cakephp or zend framework before learning codeigniter or yii or any other easy framework. This is totally my personal point of view. Ok guys lets start to install yii.
- Go to http://www.yiiframework.com/
- You will see Download yii option just beside Take The Tour option. Current version is 1.1.14
- Download and extract it in your directory.
- If you download the zip file out side of your web directory then copy it to your web directory. If you use wampp then it will www and if it is xampp it will be htdocs. Rename the extracted yii folder to yii or any other name you like.
- In you yii folder you will find 4 folders named- demos, framework, projects and requirements. Out of which framework and requirements are most important.
6. You need to add your php path directory and yii->framework directory like – my computer>properties>advanced system settings>environment variables>path> edit. Please do not forget to add ; (semicolon) after your php path yii->framework path directory.
7. Now you have see whether your computer system meets the requirements of yii. This is not anything difficult. Just go to your web browser and type localhost/yii/requirements and enter.
9. Enter to your web directory. It will be like C:\xampp\htdocs>
10. Now type yiic webapp testyii . It will now look like C:\xampp\htdocs> yiic webapp testyii . Here testyii is just your website or project name. You can give any name instead of testyii. It will ask you whether to create the web application or not. Write Yes and press enter. You will see a message saying – your application has been created successfully under C:\\xampp\htdocs\testyii
Is it so tough ? Have fun.