-
Notifications
You must be signed in to change notification settings - Fork 7.6k
dbug
World Wide Web Server edited this page Jul 4, 2012
·
7 revisions
Category:Libraries Category:Libraries::dbug
How to use phpDump as library for use in CI.
-
Get latest version of phpDump from [url=http://reallyshiny.com/scripts/php-dump.txt]here[/url] Create system/application/libraries/dbug/dbug.php and copy source from above
-
Create init_dbug.php in map init with this code :
[code] <?php if (!defined('BASEPATH')) exit ('No direct script access allowed');
if (!class_exists('PhpDump')) { require_once (APPPATH . 'libraries/dbug/dbug' . EXT); }
$obj = & get_instance(); $obj->dbug = new PhpDump(); $obj->ci_is_loaded[] = 'dbug'; ?> [/code]
- Usage : [code] $this->load->library('dbug'); ... $this->dbug->dump("test"); [/code]