[_] codeigniter php framework
Jon Bennett
jmbennett at gmail.com
Tue Mar 4 22:30:08 GMT 2008
> Whilst CodeIgniter is well documented and lightweight, as soon as you > involve any kind of complex data structure Cakephp wins hands down. CI > has no built in association mapping (too late to look up the correct > term on google!), and has afaik no recommended library, ok - always worth googling before jumping to assumptions! CI does have an Active Record implementation, it does appear both less intuitive and lacking in features. In Cakephp, models are considered (by default at least) as representations of a database table, they expect to be associated with other models (tables), and so all the active record instanciation etc is done for you. With CI on the other hand it appears you have to extend the ActiveRecord class, call it's constructor etc manually. Also in [CI] controllers you have to manually load each model you want to use, whereas with Cake the model that corresponds to that controller (again this is only the default behaviour) is loaded automatically for you, and you have all the associated models available via the model chain. anyhoo, might be worth comparing the 2 pages: http://codeigniter.com/wiki/ActiveRecord_Class/ http://book.cakephp.org/view/66/models Personally, I'm all for writing less code when I can! cheers, jon -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jon-bennett