Getting the GET back in CodeIgniter!

4

Posted on : 24-08-2010 | By : Brett | In : CodeIgniter, PHP, Programming

Ever wonder why you can’t use query strings with CodeIgniter? This post will explain to some degree, but more importantly, show you how to parse query strings and how to get the GET back in CodeIgniter!

I’ve been using CodeIgniter for a couple years now. It’s small, it’s simple, it’s powerful. Admittedly, it’s not perfect (what framework is?) but it’s a wonderful way to slap together a website using MVC design principles and PHP. I do have one big complaint, however.

Read the rest of this entry »

Google Analytics Hook for CodeIgniter

4

Posted on : 09-08-2010 | By : Brett | In : CodeIgniter, PHP, Programming

So, you finished that CodeIgniter Website last month. It was a tedious project and you’re glad it’s over! But wait! Now, your client informs you that you’re missing all the tracking code! The client also mentions he wants to use the popular, free Analytics tools from Google. This is gonna require inserting some javascript into all of your Web pages. Not a problem if you used a global footer in your views. A potentially huge pain otherwise. Either way, if you’re looking for a very simple way to globally implement Analytics code in your application, CodeIgniter hooks can make your life much easier. I’m going to show you how to take advantage of the ‘display_override’ hook point in CodeIgniter to get the job done fast! Read the rest of this entry »