Why CakePHP?

December 15th, 2006

A reader recently asked me why I chose CakePHP over other frameworks, such as Prado, so I thought I’d answer that question briefly.

What drew me to CakePHP was the “simplicity.” I say that cautiously, as there is a bit of a curve, but there’s very little configuration (i.e., no xml). At the time, all the config files in Prado kinda scared me off. I liked how CakePHP automatically picked up my controllers, models, etc based on the file/class names and locations. I liked the ActiveRecord approach to the models. In fact, it was the ORM part of CakePHP that really sold me, as I was looking for a good Hibernate-esque tool for PHP. When I stumbled across CakePHP, I found that and a really good MVC framework, so I bit.

At any rate, as time passed, I began looking at Prado again, as I read somewhere a description that made it sound as if Prado were fairly similar to JSF in terms of development (page templates, application lifecycles, etc), and I decided that I deal with a bit of XML on the Java side, so why not on the PHP side.

I started writing a small budget app for my wife and I (why we don’t just download one I can’t really say : ) in Prado and was enjoying, but the documentation was pretty poor (still is) for the latest/beta version. That’s what I get for using a beta, but it had features the stable version didn’t, and I was trying to avoid having to relearn the framework. I was also unable to get much help on the mailing lists, so, in the end, it was taking too long so I started over in CakePHP, with which I’m very comfortable, and got it done in no time.

I like Prado and would like to play with it some more as time permits, but the docs are going to have to get better. The API docs were great, but the “here’s how you actually use this stuff” type of documentation was not very helpful at all. :|

Popularity: 10% [?]

2 Comments

  1. Todd says

    On the flip-side of things. I actually spent an evening reading the documentation on CakePHP and I tried to build a simple reporting application. Impressive! CakePHP has a ton of benefits and worked well inside of Zend Studio 5.5. Thank you for engaging my curiosity about CakePHP, it was time well spent and I look forward to using CakePHP on actual “Pay the bills” project.

    December 20th, 2006 | #

  2. jason says

    Glad to hear you like it! I’ve been using it for quite some time now, and see little reason to use anything else in the PHP space. The docs are really good (especially for an open source project ;) ) and the devs are usually accessible and always helpful on the #cakephp channel on irc.freenode.net. If you run into a wall, you can try there or one of the many user sites/blogs.

    December 31st, 2006 | #

Sorry, the comment form is closed at this time.

With many thanks to Kaushal Sheth
`