maltyxx / debugbar
PHP Debug Bar for Codeigniter 3
Installs: 14 683
Dependents: 0
Suggesters: 0
Security: 0
Stars: 14
Watchers: 3
Forks: 24
Type:codeigniter-third-party
Requires
- php: >=5.3.0
- composer/installers: 1.0.*
- maximebf/debugbar: ^1.0.0
This package is auto-updated.
Last update: 2020-11-10 16:04:19 UTC
README
Debugbar for Codeigniter 3
Requirements
- PHP 5.3.x (Composer requirement)
- CodeIgniter 3.0.x
Installation
Step 1 Installation by Composer
Run composer
composer require maltyxx/debugbar
Step 2 Configuration
Edit file ./application/config/config.php
set $config['composer_autoload'] = FALSE;
to $config['composer_autoload'] = FCPATH.'vendor/autoload.php';
Duplicate configuration file ./application/third_party/debugbar/config/profiler.php
in ./application/config/profiler.php
.
Step 3 Create files
Create controller file in /application/controllers/Debug.php
.
<?php defined('BASEPATH') OR exit('No direct script access allowed'); require(APPPATH.'/third_party/debugbar/controllers/Debug.php');
Step 4 Examples
Controller file is located in ./application/core/MY_Controller.php
.
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class MY_Controller extends CI_Controller { public function __construct() { parent::__construct(); $this->load->add_package_path(APPPATH.'third_party/debugbar'); $this->load->library('console'); $this->output->enable_profiler(TRUE); $this->console->debug('Hello world !'); } }