me and yii (part 1)
Recently i wanted to create a web sites. A simple online store web site. But i was too lazy to code PHP from scratch. Then i started to search a framework. I wrote “the best php framework” in google. I got “Top ten Ranking PHP framework” in the top of google search result. Then i followed that link. I found many interesting php framework in that web site. Here is the list of to ten php framework:
- Yii
- CodeIgniter
- CakePHP
- Zend
- Symfony
- PhpDevShell
- Prado
- Akelos
- Zoop
- QPHP
I was surprised that the top framework in the list was yii. What was that framework? I have ever used cakePhp and codeIgniter before and i think codeIgniter was the best php framework i have ever used, but yii?!
I was curious with yii. Then i went to yii web site to get information about this framework. At first i thought it was just the same with other php framework. Yii has MVC, DAO/ActiveRecord, I18N/L10N, caching, authentication and role-based access control, scaffolding, testing, etc.”There is one way to know yii, try yii”. Then i downloaded it. The latest version i download was yii-1.1.5.
After i unpacked it i read the README. There was just short read me files. Then i followed the instruction in QUICK START part.
QUICK START———–
Yii comes with a command line tool called “yiic” that can createa skeleton Yii application for you to start with.
On command line, type in the following commands:
$ cd YiiPath/framework (Linux) cd YiiPath\framework (Windows)
$ ./yiic webapp ../testdrive (Linux) yiic webapp ..\testdrive (Windows)
The new Yii application will be created at “YiiPath/testdrive”.You can access it with the following URL:http://hostname/YiiPath/testdrive/index.php
Very simple and short quick start guide. Then i checked the result in web browser. I got this:
There were four links created by yii, which are Home, About, Contact, and Login. All of those pages showed me the basic frame that i might customize later. And the interesting think was it has a captcha in contact menu. But i still didn’t get why yii is special.
