Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

Fun with CodeIgniter

I just spent many hours wrestling with CodeIgniter. For one thing, it seems to go out of its way to hide PHP errors from you, even in development mode, and even when you try to turn everything back on manually with directives in your index.php.

This doesn’t help when you are trying to integrate AJAX file uploads, and can’t figure out why all you ever get is a ‘500 Server Error’, with no indication of where that error is occurring.

For the record, my problem was that I needed to use CI’s form_open_multipart() function, in order to get the hidden CSFR protection token. Without it, the Security class was just silently dying before ever getting to my controller’s action handler.

 

About Dougal Campbell

Dougal is a web developer, and a "Developer Emeritus" for the WordPress platform. When he's not coding PHP, Perl, CSS, JavaScript, or whatnot, he spends time with his wife, three children, a dog, and a cat in their Atlanta area home.
This entry was posted in Personal and tagged , , . Bookmark the permalink.

Leave a Reply

%d bloggers like this: