Symfony 1.4 + Codeigniter = Symfony 2

Recently I tried Symfony 2 Sandbox for one of my projects. I realised this fact that Symfony 2 is so powerful because they restructured the Symfony 1.4 architecture and made a system like Codeigniter Framework.

I wrote a post some months back about Codeigniter vs Symfony here.

I need to re-edit that post now, because, the drawbacks I mentioned about Symfony (Advantage of Codeigniter over Symfony) is now rectified in Symfony 2.

Symfony was based on naming conventions till 1.4 (like, indexSuccess , deleteSuccess etc) but now in Symfony 2, like Codeigniter   you can mention the name of the view from controller.

The features like view inside view (instead of partials), controller inside view (instead of components) etc are really super in terms of template flexibility.

The Bundle method in Symfony 2 is adapted from the way of codeigniter libraries. (use_library)

The Bundles method also helps in reducing memory conceptions, which Symfony was being blamed for long.

Also the advantages of php 5.3 like namespace, use etc makes Symfony 2 , memory configurable.

The advanced template controller will help to play with any external templating systems very easily. The concept of slot is well used in Symfony 2.

The drastic change in Symfony folder structure will make Symfony developer hard to switch from Symfony 1.4 to 2. But once it is settled, it will be also hard  to go back.

The Symfony team claims that Symfony is faster than any other existing PHP framework available in the market. Must be true !!  But in the comparison page,   they avoided Codeigniter.  What could be the reason ?

– Sajith

8 Comments , , , , , , , , ,

8 Responses to “Symfony 1.4 + Codeigniter = Symfony 2”

  1. E-Sly September 9, 2010 at 12:54 am #

    Will have to give it a try, but I think CI will still rule in my heart!!!

  2. Niju Mohan September 23, 2010 at 6:25 pm #

    I need your vote? Symphony 2 or CI?

    I’m going to learn one very soon…

    • Sajith M.R September 29, 2010 at 2:39 pm #

      GO FOR SYMFONY 2

    • Layton November 24, 2011 at 3:06 pm #

      Depends. if you are entry level programmer start with CI and move on to symfony2 when you are comfortable with the routing and objects.

  3. Anthony February 7, 2011 at 2:11 am #

    I did one project with code igniter and the feeling I got is that while CI is a nice mvc framework easy to understand, it’s as if it stopped education right after high school, and symfony 1.x when to college, and symfony 2 to university.

    One disappointing thing I saw in CI was that all the plugins are implemented in different ways making it that you don’t have a standard way of working with all parts of CI including it’s plugin.

    On the other hand, symfony forces you to use standard coding for plugins, controllers and templates.

    One disavantage of Symfony 2 would be that it’s way more complex then symfony 1.x. Then again, I’ll just dive into it and happily build my highly tweaked next project with it!

  4. Oscar B. February 20, 2011 at 5:56 am #

    Nice article. In past I used to see CI as a kid’s toy; but reading about your experience with it, and you telling us that S2 has some ideas in common, I have to be ashamed of myself :D

    I just have to say it: yes, codeIgniter is a nice framework.

    Anyway, I have just started to learn S2; I quit learning S1 (I accomplished 1 major project with it) but with so awesome and easy features in S2 I just can’t stop from learning.

    Regards to everybody.

  5. pippo April 9, 2011 at 1:33 pm #

    “..but now in Symfony 2, like Codeigniter you can mention the name of the view from controller.”

    Sorry man….that was possible since version 0.6 back in 2004!
    Don’t know where you got that idea it was not possible.
    Same goes for the other things you mention about the template system.
    I bet you never really used symfony.

Trackbacks/Pingbacks

  1. Frameworks PHP: Symfony vs CodeIgniter a traves de dos casos de éxito. « Los Tiempos Cambian - November 4, 2010

    [...] a volver a Symfony porque en Marzo de 2011 llegará el esperado Symfony 2.0. Ya hemos leído en que lleva lo mejor de los dos mundos, Symfony 1.4 y CodeIgniter. Personalmente me da rabia en este aspecto que en el test de comparativa de rendimiento de Symfony [...]

Leave a Reply

More in php (17 of 104 articles)


There is a very strange issue with PHP session when you prefer session to save in files other than database ...