StackPHP implementation for CodeIgniter 2