Write your code correct the first time around

After hanging around on StackOverflow.com for so long, I’ve started seeing bad programming patterns in the way new posters go about creating code, specifically using CodeIgniter, an MVC Framework. The code they write almost always shows a general lack of understanding of MVC design. A typical ‘bad programmer’ will create…

CodeIgniter URI routing issue with Controllers inside folders

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: http://example.com/account/manage/4123245/jakub…

Enabling CSRF Protection in CodeIgniter for AJAX calls

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…