CIProfiler: MongoDB profiler for CodeIgniter
See the MongoDB queries your CodeIgniter application runs, right in the profiler.
- Language
- PHP
- Framework
- CodeIgniter
- Database
- MongoDB
- Requires
- CIMongo
Overview
CIProfiler is a MongoDB profiler for the CodeIgniter framework. It plugs into CodeIgniter's own profiler output so you can see the MongoDB queries your application runs while you develop.
Prerequisites
CIProfiler needs an up-to-date CIMongo library, so install that first. Setup is covered in the CIMongo documentation.
Installation
- Enable hooks in
application/config/config.php:$config['enable_hooks'] = TRUE; - Copy the downloaded files into the matching folders of your application:
config,librariesandplugins. Take care not to overwrite files you have customised, and create thepluginsfolder if it does not exist. - Enable the profiler wherever you need it, for example in a controller:
$this->output->enable_profiler(TRUE);
With the profiler on, the new MongoDB profiler appears in the output.