03 May 2011 ~ Comments Off

Codeigniter Views

Multiple views! Did you know you can load multiple views in a Codeigniter controller method? I have always believed it was one view to one action, but that is not the case! CodeIgniter will intelligently handle multiple calls to $this->load->view from within a controller. If more than one call happens they will be appended together. [...]

Continue Reading

Tags: ,

28 January 2011 ~ 1 Comment

Caching Driver CI 2.0

With the latest release of Codeigniter, they added whats called “Caching Driver” allowing you to now use Memcache without going to a separate library as detailed in an older post: Memcache with Codeigniter. They now also support File based caching, Alternative PHP Cache (APC) Caching and Dummy Cache. CodeIgniter features wrappers around some of the [...]

Continue Reading

Tags: ,

21 January 2011 ~ 2 Comments

Quick and Easy Way To Do Autocomplete

Auto complete forms are now becoming essential to every day web development and knowing how to build such a tool will in some cases make you a hero! In the tutorial below i will be using PHP and jQuery. jQuery offers its own tool for this common problem in the jQuery UI library.

Continue Reading

30 June 2010 ~ 1 Comment

Query Strings in Codeigniter

In some cases you might prefer to use query strings URLs and not the pretty URLs. CodeIgniter optionally supports this capability which can be enabled in your application/config.php file.

Continue Reading

Tags: ,

14 June 2010 ~ 1 Comment

Codeigniter Path Helper

he Path Helper file contains functions that permits you to work with file paths on the server.

Continue Reading

Tags: ,

07 June 2010 ~ 1 Comment

Listing files in a directory Codeigniter

The Directory Helper file contains functions that assist in working with directories. First if you plan on using this often you may want to place this in your autoload under the config folder. Below is how you would load it in the controller itself. $this->load->helper(’directory’); Now you have access to the directory_map function, this function [...]

Continue Reading

Tags: ,

02 June 2010 ~ 3 Comments

Rackspace Cloud Files CDN

Most web applications today use a CDN (Content Delivery Network) to take the load off the web server.

Continue Reading

Tags: ,

01 June 2010 ~ 2 Comments

Codeigniter URLs remove index.php

By default, URLs in CodeIgniter are designed to be search-engine and human friendly.

Continue Reading

Tags: ,

28 May 2010 ~ 1 Comment

New short url service

Turn large annoying urls into short and simple ones! Your short url will go directly to the page of your choice, and last forever.

Continue Reading

Tags: ,

02 January 2010 ~ 1 Comment

Memcache with Codeigniter

In one of my latest projects we are using memcache to store user data and other items that will improve user experience.

Continue Reading

19 January 2009 ~ Comments Off

CodeIgniter – Write a cookie

This will show you how easy it is to set a cookie using CI (CodeIgniter) the PHP framework. First we need to include the helper into your controller. The other option is to add this to the autoload.php file in your config folder. 1 $this->load->helper(’cookie’); Now we need to set the cookie 1 2 3 [...]

Continue Reading

Tags: ,