Hi Foysal

CakePHP and CI are quite different. The main differences I've seen most
people pointing out (usually in the favour of codeigniter) are as follows:


   1. *Codeigniter is "speedy" and lightweight, CakePHP is too "heavy" and
   slow.*
   My opinion: Speed is more or less a hype, there are many ways to speed
   up an application including caching which CakePHP does fantastically.
   *
   *
   2. *Codeigniter has better documentation than CakePHP making it easier
   to learn.*
   My opinion: The CakePHP documentation is wonderful, it has been improved
   upon over the years and the handy search/tree structure makes it easy to
   find what you want. Codeigniter has a simple documentation because it
   doesn't *seem* to provide as much as CakePHP out of the box.

   3. *CakePHP is too strict or too complicated, CI lets me do things how I
   want.*
   My opinion: CakePHP does require you to play by the rules or it may
   throw a fit, this can be annoying at first but it's a damn fine set of
   rules anyhow. CI is handy for those people who want to "re-invent the
   wheel" but CakePHP provides you with *so much useful functionality* that
   makes coding an application so* much faster. *

I don't think it should be called "CakePHP vs Codeigniter" per-say, I think
they're two very different frameworks and you should pick the one best
suited to your style. But as I said this is all my early opinion and I have
much more to learn about CI before I can say this is "fact".

Here's a very simple "create" action for codeigniter, I was using
"DataMapper" for ORM and WilliamConcept's Template Library.

http://pastie.org/private/eqvkfhjesfgekscczhjzw

Here's the same simple action in CakePHP (much to be improved upon in both
examples)

http://pastie.org/private/t6wytxpgwkappe2h6uo16w

I've since been informed CI Validation can save time importing the post
data (however I think DataMapper may override the validation for it's ORM)
and that there is a better way to redirect.

Personally I find CakePHP much more efficient because it saves me a lot of
time and does the job how I would expect it to be done if it were done
properly. (Not to say I haven't been frustrated at CakePHP not doing
something, we all have I assume)

My 2 cents.
 Stephen

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to