jjj

Log4PHP with CodeIgniter

You developed that fancy CI website but time and again an ugly notice/error message is displayed which annoys client. You, as a developer, know that these messages are harmless but you still want to keep an eye on them and hence do NOT want to suppress them in php.ini. You can use log4php to achieve…

Read More
jjj

CI with SVN

We have been using CodeIgniter with svn since last year and half. Here are few things that we follow to avoid conflicts/unnecessary file commits. We add following files to ignore list: user_guide // It is important that all the developers have this for quick reference but adding it to svn is pointless. application/config/database.php // Instead commit…

Read More
jjj

Smarty with CodeIgniter

We have been using CodeIgniter with Smarty for quite a few projects. Getting the Smarty to work with CodeIgniter is not straight forward. It has its own set of quirks. The steps below explain how to set up CI to work with Smarty on Windows and Linux (tested on Ubuntu but should work on other flavors too) machines. Requirements…

Read More
jjj

CodeIgniter Subquery with Alias

CI ActiveRecord does not support subquery out of the box. NITCompass wrote this awesome library for the subquery support, which you can download from here: http://labs.nticompassinc.com/CodeIgniter-Subqueries/ Only problem in this library is, it does NOT support aliases. We tweaked this library and added support for the aliases. Please download this changed subquery file from our…

Read More