-
Website
http://www.17od.com -
Original page
http://www.17od.com/2007/04/09/why-am-i-here/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
ijokasu
1 comment · 0 points
-
belgamo
2 comments · 1 points
-
craden
1 comment · 1 points
-
a_mol
1 comment · 1 points
-
threaderslash
1 comment · 1 points
-
-
Popular Threads
Have you found that using an MVC framework such as Code Igniter has reduced the development time of your project significantly?
Overall I really like CI. It's accessible, easy to learn, functional and doesn't get in your way. Before I started using it I looked at both symfony and CakePHP. Both looked really good but I find that unless I can start using a framwork (to do even basic stuff) within an hour or two of reading the documentation then it's too much work. Maybe that's just me being impatient but there you are. With CI I watched the webcast, had a quick read of the documentation (which is nice and short but still informative) and very soon I was up and running.
The scaffolding features in CI are pretty basic and not realy comparable with what's available elsewhere. In rails for example the scaffolding generates code for features that are repeatable given a few simple parameters. In CI, the scaffolding is there for one simple reason, to allow you to add/edit/delete data in your database during development.
I've seen comments around various sites saying that the ActiveRecord layer in CI is weak compared to that of CakePHP. That's probably true, I've not spent enough time with CakePHP to understand what it can and can't do. With CI you're given a very simple database interbase. What you do is create a Model class, for example User (which isn't mapped to any table in particular). Within this class you add functions to perform the actions you want. For example, add(), update(), delete(), findByEmailAddress(), etc. Within each method you can write your own SQL or use a helper library that can generate SQL based on your requirements. I find being able to write the SQL myself the best option. SQL isn't difficult so why abstract it away and make life difficult for yourself. If your SQL is a select statement then you're returned an object representing the result set. You can loop through each row in the object just like any other array in PHP and accessing a column is as easy as user->firstname. All in all the database access/ActiveRecord layer in CI is more than adequate.
I'll try and do a more indepth review at some stage.