ORM’s and Why to use them?

Posted by & filed under CodeIgniter, PHP.

So there is this hype that ORMs are the┬ásolution to all your Data Access problems. They may not be the total solution but they sure make your Data Access easy. At a very high level: ORMs help to reduce the Object-Relational impedance mismatch. They allow you to store and retrieve full live objects from a… Read more »

Creating a Template Helper for CodeIgniter

Posted by & filed under CodeIgniter, PHP.

As discussed in the previous post, a better way to load a template is by using a helper function, which loads the header and footer (and any common partials) for each page. Here’s how our template helper will be. Save the above code to application/helpers/template_helper.php file. To use the helper, we do the following in… Read more »