it is still long way to go

stop holding your self and move forward to the never ending journey

me and yii (part 1)

leave a comment »

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:

  1. Yii
  2. CodeIgniter
  3. CakePHP
  4. Zend
  5. Symfony
  6. PhpDevShell
  7. Prado
  8. Akelos
  9. Zoop
  10. 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. :)

Advertisement

Written by gentur

December 5, 2010 at 6:26 am

Posted in php

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.