Skip to content

Commit

Permalink
Merge pull request #2490 from Instrye/patch-2
Browse files Browse the repository at this point in the history
fix. Toolbar init view Error
  • Loading branch information
lonnieezell authored Jan 15, 2020
2 parents dfb358c + 95a732f commit a0e802d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion system/Debug/Toolbar/Collectors/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Events extends BaseCollector
*/
public function __construct()
{
$this->viewer = Services::renderer(null, true);
$this->viewer = Services::renderer();
}

//--------------------------------------------------------------------
Expand Down
22 changes: 12 additions & 10 deletions user_guide_src/source/testing/debugging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,17 @@ Choosing What to Show

CodeIgniter ships with several Collectors that, as the name implies, collect data to display on the toolbar. You
can easily make your own to customize the toolbar. To determine which collectors are shown, again head over to
the App configuration file::

public $toolbarCollectors = [
'CodeIgniter\Debug\Toolbar\Collectors\Timers',
'CodeIgniter\Debug\Toolbar\Collectors\Database',
'CodeIgniter\Debug\Toolbar\Collectors\Logs',
'CodeIgniter\Debug\Toolbar\Collectors\Views',
'CodeIgniter\Debug\Toolbar\Collectors\Cache',
'CodeIgniter\Debug\Toolbar\Collectors\Files',
'CodeIgniter\Debug\Toolbar\Collectors\Routes',
the **app/Config/Toolbar.php** configuration file::

public $collectors = [
'\CodeIgniter\Debug\Toolbar\Collectors\Timers::class',
'\CodeIgniter\Debug\Toolbar\Collectors\Database::class',
'\CodeIgniter\Debug\Toolbar\Collectors\Logs::class',
'\CodeIgniter\Debug\Toolbar\Collectors\Views::class',
'\CodeIgniter\Debug\Toolbar\Collectors\Cache::class',
'\CodeIgniter\Debug\Toolbar\Collectors\Files::class',
'\CodeIgniter\Debug\Toolbar\Collectors\Routes::class',
'\CodeIgniter\Debug\Toolbar\Collectors\Events::class',
];

Comment out any collectors that you do not want to show. Add custom Collectors here by providing the fully-qualified
Expand All @@ -100,6 +101,7 @@ The Collectors that ship with CodeIgniter are:
* **Cache** Will display information about cache hits and misses, and execution times.
* **Files** displays a list of all files that have been loaded during this request.
* **Routes** displays information about the current route and all routes defined in the system.
* **Events** displays a list of all events that have been loaded during this request.

Setting Benchmark Points
========================
Expand Down

0 comments on commit a0e802d

Please sign in to comment.