PinoyTech.org

CodeIgniter, Kohana, Mootools, jQuery and CSS

Write INI files with PHP

Posted by teejay on May 13, 2010

INI files are particularly helpful for small configurations. The Zend framework intensively uses INI files (from their beginners guide). You can use parse_ini_fileto read the configuration listed in there. However, what if we wanted to modify the INI files?

Using strings for URI Segments in CodeIgniter

Posted by teejay on April 21, 2010

If you have used Kohana before, you'll notice that their URI::segment() function accepts strings. CodeIgniter's s URI::segment doesn't.

Add SESSIONS to Profiler in CodeIgniter

Posted by teejay on April 21, 2010

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.

How to put an Image in an Anchor in CodeIgniter

Posted by teejay on April 21, 2010

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

Multiple Applications with Codeigniter with one installation

Posted by teejay on April 10, 2010

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.

Turn on Database Profiling in Kohana 2.x

Posted by teejay on April 10, 2010

If you're like me and have used Kohana through the 2.x versions, you might be used to seeing the profiler outputting the SQL queries.

In Kohana 2.4, the latest stable version of the 2.x series, it won't show by default.

How To Turn Off Displaying of MySQL Errors in CodeIgniter

Posted by teejay on March 30, 2010

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.

How to Access a Model from another Model

Posted by teejay on March 30, 2010

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.