Welcome Guest, Not a member yet? Register   Sign In
Debug Toolbar
#11

[eluser]TaylorOtwell[/eluser]
That looks cool! Thanks for sharing.
#12

[eluser]michalsn[/eluser]
[quote author="bjora857" date="1291780834"][quote author="michalsn" date="1288390888"]Move "MY_Benchmark.php" file from "application/libraries" to "application/core". It should work.[/quote]

Should I do the same when using it with 1.72?
[/quote]
No, only if you use CI 2.0-dev

For CI 1.7.2/3 it should work out of the box. Make sure that you follow the instructions from first post. I tested it couple of minutes ago and it working without a problems.
#13

[eluser]Unknown[/eluser]
Thanks for sharing mate, It's nice
#14

[eluser]Unknown[/eluser]
Did someone try to make it work as a module using HMVC Module Separation and CI 2.0 ? This is what I'm using and even tho I don't get any error message, nothing appears Sad
#15

[eluser]matt2012[/eluser]
In 2.0

I'm getting

Code:
Severity: Notice

Message: Undefined property: CI_Log::$logs

Filename: hooks/debug_toolbar.php

Line Number: 93

Which is where it calls $LOG->logs;

Code:
public function logs()
    {
        $LOG =& load_class('Log');
        return $LOG->logs;
    }

In MY_Log I have

Code:
class MY_Log extends CI_Log {
    
    var $logs = array();

    function __construct()
    {    
        parent::__construct();
        
    }
    
    function write_log($level = 'error', $msg, $php_error = FALSE){
        parent::write_log($level, $msg, $php_error);
        
        //$memory     = (!function_exists('memory_get_usage')) ? '0' : memory_get_usage();
        $b = load_class('Benchmark');
        $b->mark($msg);
        $this->logs[] = array(date('Y-m-d H:i:s P'), $level, $msg);
    }
    
}

Anyone see what I'm doing wrong?
#16

[eluser]Unknown[/eluser]
First, Thanks konfoo and others for this wonderful library.

I have the exact same source for MY_Log.

As mentioned above for CI 2.0, MY_Benchmark.php is in the /application/core folder instead of /application/hooks.

Try, hope this helps.




Theme © iAndrew 2016 - Forum software by © MyBB