Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Updates branch for inclusion in master.
Browse files Browse the repository at this point in the history
Includes updated Readme file; Changes default configuration setting to disabled; Fixes typo in profiler template.
  • Loading branch information
Joshua Smith committed Sep 18, 2014
1 parent e9fcda1 commit 85640f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Forensics adds a few things to the stock Profiler that should make your life as
- The output now also includes a list of all files that your CodeIgniter app includes, as well as their location (relative to your FCPATH).
- Output also has the ability to log items and track memory in your project via a new console class.
- Any variables sent to the view are shown in the bar.
- Forensics now provides a detailed look at queries run via [Illuminate Database](https://github.com/illuminate/database).

The default look, and some of the additional functionality, was heavily inspired by ParticleTree's [PHP Quick Profiler](http://particletree.com/features/php-quick-profiler/).

Expand Down Expand Up @@ -51,6 +52,10 @@ The log_memory function has two uses.

In order to use either of these functions, you must be sure to load the Console library before you use it.

### Illuminate Database Queries

In addition to CodeIgniter database queries, Forensics can display information about any queries run by [Illuminate Database](https://github.com/illuminate/database) models or the Eloqeunt query builder. **This feature is disabled by default.** To enable this feature, change the config setting for `eloquent` in `config/profiler.php`. If you're using Illuminate Database in your project, note that this feature requires Capsule\Manager.

## Other Tips

You can change the location of the profiler bar by changing the `$bar_location` variable at the top of the *profiler_template* view to one of the following locations:
Expand Down
2 changes: 1 addition & 1 deletion config/profiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
$config['memory_usage'] = TRUE;
$config['post'] = TRUE;
$config['queries'] = TRUE;
$config['eloquent'] = TRUE;
$config['eloquent'] = FALSE;
$config['uri_string'] = TRUE;
$config['view_data'] = TRUE;
$config['query_toggle_count'] = 50;
2 changes: 1 addition & 1 deletion views/profiler_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
<?php endif; ?>

<!-- Eloquent -->
<?php if (isset($sections['queries'])) :?>
<?php if (isset($sections['eloquent'])) :?>
<div id="ci-profiler-eloquent" class="ci-profiler-box" style="display: none">
<h2>Eloquent</h2>

Expand Down

0 comments on commit 85640f3

Please sign in to comment.