PinoyTech.org

CodeIgniter, Kohana, Mootools, jQuery and CSS

When to use redirect() and when to use load->view

Posted by teejay on November 28, 2010

If you're new to Codeigniter, you'd probably have this question. If you're an intermediate CodeIgniter user, then you'd probably say this post isn't needed. Let me just post this for anyone who needs it.

Continue reading When to use redirect() and when to use load->view

 

How to get the current URL in CakePHP

Posted by teejay on November 23, 2010

I'm quite new to CakePHP when compared to my CodeIgniter experience and have been tracking down all tutorials I've read and am still reading a lot.

Continue reading How to get the current URL in CakePHP

 

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.

Continue reading Using strings for URI Segments in CodeIgniter

 

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.

Continue reading Add SESSIONS to Profiler in CodeIgniter

 

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

Continue reading How to put an Image in an Anchor in CodeIgniter

 

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.

Continue reading Multiple Applications with Codeigniter with one installation

 

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.

Continue reading How To Turn Off Displaying of MySQL Errors in CodeIgniter

 

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.

Continue reading How to Access a Model from another Model