lonnieezell / codeigniter-forensics

A high-powered, customizable Profiler replacement for CodeIgniter.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Forensics Profiler not loaded if installed with Composer

Alain1405 opened this issue · comments

I added "lonnieezell/codeigniter-forensics": "dev-master" and executed "composer update".
The package has been installed but the default profiler is loaded instead.

I have "include_once './vendor/autoload.php';" in main index.php. Isn't it enough to load codeigniter-forensics classes?

Because of the way that CI works, the forensics package doesn't actually need Composer's autoload. Instead, it gets placed in your application's third_party folder as a package. So, the missing step is to add it to your packages in the autoload file.

$autoload['packages'] = array(APPPATH.'third_party/codeigniter-forensics');

Looks like I need to update the docs on that.

I noticed indeed that it wasn't in the vendor folder.
Thank, that solved my issue.
PS. Thank's, I've finally got rid of the ugly profiler!

No problem! Enjoy it and let me know if you have any feature requests. :)