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.

 

Snowy

My wife Susan and our dog Spirit enjoying the snow.

3 mons 3 wks ago # Comments Off

I haz a friend

Our kitten, Zero, wants to sit on my shoulder while I work on the computer.

3 mons 4 wks ago # Comments Off