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
Be Sociable, Share!

8 thoughts on “Kohana and CodeIgniter PHP Framework

  1. 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?

  2. 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

  3. 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

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>