Code Monkey home page Code Monkey logo

codeigniter-develbar's Introduction

CodeIgniter Developer Toolbar

CodeIgniter Developer Toolbar is a third party library based on Profiler Library with additional functionality for debugging and optimization.

  • Support Multilanguage.
  • Support HMVC.

Screen-shot

Alt text

Installation

CodeIgniter Versoin >= 2.2.0

Copy the files to the application/third_party/DevelBar folder.

Copy the file MY_Loader.php to the application/core folder.

For HMVC

If you are using HMVC third party library, copy MX_Loader.php instead of MY_Loader.php to your core directory, and change the file name to MY_Loader.php instead of MX_Loader.php.

Usage

Open application/config/autoload.php :

$autoload['packages'] = array(APPPATH . 'third_party/DevelBar');

Open application/config/config.php :

$config['enable_hooks'] = TRUE;

Open application/config/hooks.php and add this line :

$hook['display_override'][] = array(
	'class'  	=> 'Develbar',
    'function' 	=> 'debug',
    'filename' 	=> 'Develbar.php',
    'filepath' 	=> 'third_party/DevelBar/hooks'
);

Open application/third_party/DevelBar/config/config.php :

$config['enable_develbar'] = TRUE;

Additional parameters

If you want to disable some sections within the developer toolbar,

Open application/third_party/DevelBar/config/config.php, and set the sections value to FALSE :

$config['develbar_sections'] = array(
	'Benchmarks' 		=> TRUE,
    'Memory Usage'	   	=> TRUE,
    'Request'   		=> TRUE,
    'Database'			=> TRUE,
    'Hooks'				=> FALSE, // Disable Hooks Section
    'Libraries'			=> TRUE,
    'Helpers' 			=> FALSE, // Disable Helpers Section,
    'Views' 			=> TRUE,
    'Config' 			=> TRUE,
    'Session' 			=> TRUE,
    'Models' 			=> TRUE,
);

To auto check for available new version of CodeIgniter and DeveloperToolbar, you should set check_update option to TRUE, within application/third_party/DevelBar/config/config.php :

$config['check_update'] = TRUE;

NOTE : if this option is set to TRUE, it will slow down the page loading a little bit.

codeigniter-develbar's People

Contributors

jcsama avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.