Using strings for URI Segments in CodeIgniter
If you have used Kohana before, you'll notice that their URI::segment() function accepts strings. CodeIgniter's s URI::segment doesn't.
Continue reading Using strings for URI Segments in CodeIgniter
Add SESSIONS to Profiler in CodeIgniter
I am a profiler addict. I tend to put this ON on every application that I start to build. However, unlink Kohana that shows the sessions in their profiler, CodeIgniter doesn't. Here's a way to add it to your profiler without hacking the core.
Continue reading Add SESSIONS to Profiler in CodeIgniter
How to put an Image in an Anchor in CodeIgniter
I often see new CodeIgniter users ask, how to put an image inside the anchor helper. Most developers 'hand-code' the image tag inside the anchor helper
Continue reading How to put an Image in an Anchor in CodeIgniter
Multiple Applications with Codeigniter with one installation
Upgrading is never easy, you have to check for all deprecated functions. And although, CodeIgniter makes it very easy, it's probably going to be hard once you have tons of applications to upgrade.
Continue reading Multiple Applications with Codeigniter with one installation
How To Turn Off Displaying of MySQL Errors in CodeIgniter
As programmers, showing off sensitive information is a 'no-no'. MySQL errors are one way of non-intentional way of displaying sensitive information. Normally we would fix the problems before they arise but like everything else, you can't be too sure.
Here's what you do to turn off MySQL errors from being shown on screen.
Continue reading How To Turn Off Displaying of MySQL Errors in CodeIgniter
How to Access a Model from another Model
Accessing models from another model is one question that you hear a lot from new CodeIgniter users. It's actually quite easy and somewhat like loading a user created library in CodeIgniter.
Continue reading How to Access a Model from another Model
Using Mercurial to Get CodeIgniter 2.0
Ever since I've been working with CodeIgniter, I've always checked out the SVN, but this year, Ellislab, decided to pull the plugs on SVN and move on the Mercurial for a lot of reasons, namely:
- some of which becomes heavier in proportion to the distance between team members, and as both your projects and team increase in size
- Commits and diffs become laborious on even the fastest of networks
- The size of the repository balloons if you try to use basic features of branches and tagging
- Renaming and moving files is a pain, and can jam up your fellows’ repositories
This move prompted me to learn Mercurial. So here we go...
Continue reading Using Mercurial to Get CodeIgniter 2.0
CodeIgniter Image Manipulation Class: How to Resize

The CodeIgniter Image Manipulation Class is a useful tool when implementing simple resize, cropping, rotate, watermarking and flipping of images are required in your project.
Here is a series of code templates for using the CodeIgniter Image Manipulation Class:
First one is resizing:
Continue reading CodeIgniter Image Manipulation Class: How to Resize

