PinoyTech.org

CodeIgniter, Kohana, Mootools, jQuery and CSS

CodeIgniter Image Manipulation Class: How to Resize

Posted by teejay on December 1, 2009

CodeIgniter logo

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

 

CodeIgniter AJAX Helper

Posted by teejay on November 13, 2009

This is a quick post on how to recognize AJAX Requests.

<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');

function is_ajax()
{
    return isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest';
}

?> 

Continue reading CodeIgniter AJAX Helper

 

AJAX with CodeIgniter

Posted by teejay on November 13, 2009

AJAX can be seen almost everywhere on the web. Yahoo uses it. Google uses it. My boss uses it. My grandmother uses it — well maybe not but that shouldn't stop you from using it.

Here's an awesome tutorial to use AJAX with CodeIgniter.

Continue reading AJAX with CodeIgniter

 

CodeIgniter FAQ: Loading a View within a View

Posted by teejay on November 9, 2009

A lot of new CodeIgniter users have at one point asked, "How to load a view within another View?"

To load a view within another view. We can also use the same method we used in the controller to load the "primary" view.

Continue reading CodeIgniter FAQ: Loading a View within a View

 

How to do Multiple SQL Inserts

Posted by teejay on November 2, 2009

Using multiple insert queries almost always slip my mind when developing applications. If you are like me, we all need some reminder in some way or another.

Continue reading How to do Multiple SQL Inserts

 

How To Set-Up CodeIgniter

Posted by teejay on November 1, 2009

The CodeIgniter framework is one of the easiest frameworks to set-up whether it is on a development server or production server.

Continue reading How To Set-Up CodeIgniter

 

How to Rename when File Uploading using CodeIgniter

Posted by teejay on October 31, 2009

This would have been something I could have liked to implement when I built, Bargainph - The Buy and Sell website. I just never got to implementing this very easy feature. Instead, I have been relying on the file's filename and CodeIgniter's built-in renaming to duplicate uploaded files.

Continue reading How to Rename when File Uploading using CodeIgniter

 

How to Debug Queries with CodeIgniter

Posted by teejay on October 31, 2009

If you are like me - browsing through the forums almost everyday - you'll probably notice the large number of questions regarding SQL debugging. I try to answer a few depending on the time I have.

Continue reading How to Debug Queries with CodeIgniter