Redirect user back after login using CodeIgniter

January 6th, 2014 - How To, PHP, Thoughts & Rants

So you’ve made your CodeIgniter app using PHP, you’ve made is safe, secure and skipped needing to use SQL in favor of Active Records. Well the one thing most people forget to do (or realize later) is a simple UX (user experience) flow of post login routing. Basically, you want users to go back to […]

Codeigniter keeping bots out of your sessions table or how I cleaned up my sessions

January 6th, 2014 - GitHub, How To, PHP

A few people have looked at ways to keep their CodeIgniter mysql sessions table clean on their apps, and the biggest culprit for ballooning session tables is due to the fact that your site gets indexed or scanned by web crawlers and various bots. Typically with CodeIgniter sessions, you would store them in a `ci_session` table […]

A3M Updated and Re-factored to use Twitter Bootstrap

February 6th, 2013 - CSS, GitHub, Javascript, PHP

Well it took a lot of work, and some holiday time (over Xmas) but I squeezed together time to tackle gutting the aging A3M application. My initial commit of what I am calling ‘A3M – Bootstrapped’ is available for forking @ Github here: If you haven’t had any experience designing with Twitter Bootstrap, I […]

A3M Updated to latest CodeIgniter v2.1.2 named PB&J

July 24th, 2012 - GitHub, In the News, PHP

As of tonight I’ve happily updated the long idle A3M project on github. You can check it out here: Also, I will be updating the official A3M guide later (as its almost 3am as I write this). Check it out, and enjoy. Feel free to fork and offer bugs, enhancements and suggestions to make […]

CodeIgniter URI routing issue with Controllers inside folders

December 8th, 2011 - How To, PHP

I’ve seen a lot of people requesting help on figuring out routing on CodeIgniter (2.1.X as of this entry). Which leads me to believe they don’t read the guide and confuse how routes are setup. So, Here is our scenario, We want to have a nice clean URL of: Up to this point, we […]

Enabling CSRF Protection in CodeIgniter for AJAX calls

December 6th, 2011 - How To, PHP

If you use CodeIgniter (CI) like me, you’ve probably read/heard about the CSRF protection that comes built into this great framework.  I typically kept ajax functionality (form submissions in this case) to a minimum as I wanted to focus more on development and finishing a project than prettying it up with ‘Web 2.0’ stuff. Well […]

Coldfusion and checking if a variable is Defined

January 26th, 2011 - Coldfusion, How To, PHP, Thoughts & Rants

As I work with Coldfusion 9, I can’t help but keep comparing it to PHP, and I get annoyed by some of the small differences. One thing that I really have been getting annoyed with lately is checking if a variable is defined.  In most cases you could do a simple check, is it empty? […]