CodeIgniter and Sparks, Fatal error: Call to a member function isMobile() on a non-object

codeigniter ellislab

Now this is just going to be a quick tip about a tiny pitfall in the amazing extension system for CodeIgniter: Sparks.

I was lucky to find a spark to detect mobile devices for a project I’m working on right now, so I wouldn’t have to drag together all the specifications for various user agents, written by James Constable. The problem I ran into was, that CodeIgniter would output an error whenever I tried to load the spark, which went like this: Continue reading “CodeIgniter and Sparks, Fatal error: Call to a member function isMobile() on a non-object”