DerekAllard.com

Passing Disallowed Characters through the URL in Code Igniter

One of the very nice things about CodeIgniter (and really all the PHP frameworks I've looked at) is the built in security tools. For example, CodeIgniter automatically cleans cookies, sessions, user input and URLs in addition to coming with a host of other built in tools to make your job in securing your application as easy as possible. But, like all good things, there is a trade off. In the case of security, the trade off is convenince. The more secure, the less convenient. Since security isn't really something we can compromise on, clever developers need to find alternate ways of implementing common things. CodeIgniter for example limits the characters that one can use in a URL to letters, numbers, and "~, %, :, _ and -". A good collection sure, but what if you need to pass other characters, such as "(, ), =" or even spaces? Here's how I did it.

Captions in HTML Table Class

After a recent request for this, I’m re-posting the code to generate table captions in Code Igniter that I originally posted in the forums. Using it is very simple:

$this->table->set_caption()

Top 8 Code Igniter Wiki Resources

One of the reasons I started getting active in the Code Igniter community was because of... um... well, the community. The people who are active are such interesting people, who give a lot of themselves back into the framework. You only need to look at the very active forums to see this happening. Community contributions are cropping up all over, including CIForge.com, as well as numerous independent efforts to educate and evangelize. People from all walks of life are drawn to Code Igniter, presumably for the same reason I was. It just plain rocks. It helps you build faster, it helps you build more organized, and it helps you build more securely.

In fact, CI is so sweet, that you could download the framework and never visit the site again, and be instantly more productive... but if you really want to push the bounds, then you need to spend some time in the community wiki. The wiki is a mysterious, fantastic place - and if you can sort through the disorganization and flux, there are some real treats in there. In fact, nearly every project I've built has used something from the wiki*. So in no particular order, here are my top eight, wiki resources.

Building an RSS Feed in Code Igniter

I've had a few requests asking how I built my RSS feed since I'm using a custom built Code Igniter blogging system. Actually, it was pretty straight forward, but I thought I'd take a few moments to outline step by step how I did it.

Thoughts on a Javascript Library Integration with Code Igniter

For reasons I'll disclose in the near future, I've recently been convinced that Scriptaculous, despite my thoughts on its "bloat", is in fact the best library for me to focus in on if I'm going to integrate it with Code Igniter. I'm currently committed to a project that I'm just finishing off that I've been developing using Mootools, but when its done any work I do in this area will probably be on Scriptaculous integration.  I'll release the mootools library when I'm done of course!

DerekAllard.com has been rebuilt

Well, this humble blog started as a standard Wordpress install. I quickly moved to the Hemmingway theme, but then thought that my site lacked any of my personality. So I set about to rebuild it. My first attempt was chronicled on this blog. My intentions were to make it available as a Wordpress theme for anyone to download.

Tips for Getting Started Building an Application Using Code Igniter

When I originally released BambooInvoice I learned a lot about trying to code for a site specific goal, and coding for a mass audience. I originally wrote these tips on the Code Igniter forums, but since I was recently asked for advice again, I thought I'd repost them here. The original thread is still active.

Since I released BambooInvoice I've received a number of interested emails from developers looking for tips on getting started building an application using code igniter that you intend to widely distribute. Here is a small collection of useful processes.

Code Igniter 1.5 released

Hot on the heels of Firefox2, another magnificent piece of software has been released. Code Igniter 1.5 is out and now available for download!

It contains loads of new improvements and enhancements including database caching, a table class, an FTP library, and download helpers. Even implemented are versions of a list helper, and table->clear()!

Folding for Code Igniter

function cure_cancer() { $this->load->folding('code_igniter'); }

I’ve started a folding team for Code Igniter, and put up a quick team page.

Code Igniter Spanish Language Translastions

One of the great things about Code Igniter is the community that has built up around it. They write plugins, offer enhancements, and welcome new users openly in the forums. One of the interesting things the community has done is write many language translations for the framework. ReynierPM has written spanish language translations, which I’ve offered to host for him here on derekallard.com.