Kohana and CodeIgniter PHP Framework

Kohana: the swift PHP frameworkCodeIgniter is a powerful PHP framework. I have been working on CodeIgniter for more than 2 years. I suggested lot of my friends to learn CodeIgniter. Few months back I started working on Kohana PHP framework. The slogan of Kohana is nice – “The Swift PHP Framework”. I liked Kohana at the first sight.

I developed several web application using Kohana and became a big fan of Kohana. Here I would like to show you some code segments of both frameworks. CodeIgniter

How to load view in CodeIgniter

To load a view in CodeIgniter you have to write

$this->load->view('home', $data);

How to load view in Kohana

$this->template->content = new View('home');

I like the Kohana’s technique best. CodeIngiter is not fully object oriented. Helper functions of CodeIgniter are not object oriented. But in Kohana, everything is object oriented. Say of example- here is a helper class and function to redirect to a particular function in Kohana.

url::redirect('some_controller/some_function');

But in CodeIgniter the helper function is something like this-

redirect(‘some_controller/some_function’);

I would like to share my opinion.

CodeIgniter:

  • Easy to learn
  • Fast and light weight
  • Good documentation
  • Not fully object oriented

Kohana:

  • Easy to learn
  • Fast and light weight
  • Documentation is not good
  • Fully object oriented

Comments

8 responses to “Kohana and CodeIgniter PHP Framework”

  1. Why this is a small post? We want some big post from you about Kohana 😉

  2. huh? what a post! I was scrolling down to read more. Did you forget to write or you didn’t paste the rest of the text from your original writing?

  3. mahfuz05 Avatar

    We want some big post from you about Kohana 😉

  4. CodeIgniter has the backward compatibility for php 4. So why its not fully object oriented. I like to use CI for developing small project, facebook project. But for larger project my choice is Zend Framework. However it would be great if you highlight more about why we should use Kohana.

    thanks

  5. CodeIgniter has the backward compatibility for php 4. So why its not fully object oriented. I like to use CI for developing small project, facebook project. But for larger project my choice is Zend Framework. However it would be great if you highlight more about why we should use Kohana.
    thanks

  6. KohanaPHP’s object oriented approach is too good. very easy to handle..

  7. […] to secondary contentHomeAbout meEducationJob HistorySkill MatrixContact Me Post navigation ← Previous Writing review on the book- “Kohana 3.0 Beginner’s Guide” Posted on October 8, […]

  8. Im a big fan of kohana too!! koha is rock!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.