maltyxx/debugbar
最新稳定版本:v1.0.3
Composer 安装命令:
composer require maltyxx/debugbar
包简介
PHP Debug Bar for Codeigniter 3
README 文档
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 !'); } }
统计信息
- 总下载量: 15.07k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 17
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-21