Welcome Guest, Not a member yet? Register   Sign In
Can't get ChromePHP working?
#1

[eluser]chefnelone[/eluser]
Hello

I tried to use ChromePHP (firephp for Chrome) but I can't get it working.
I download the library from:
https://github.com/ccampbell/chromephp

Then I put ChromePhp.php into applications/libraries
and autoloaded the library from autoload.php
Code:
$autoload['libraries'] = array('ChromePhp', 'firephp');
But I get this error:

Code:
ErrorException [ Fatal Error ]: Call to private ChromePhp::__construct() from context 'CI_Loader'
SYSDIR/libraries/Loader.php [ 928 ]
928             $CI->$classvar = new $name;

Is anyone using this library?
What am I missing?
#2

[eluser]AbeEstrada[/eluser]
Here is the answer: http://ellislab.com/forums/viewthread/165540/

find the __construct: private function __construct()
and replace "private" with "public"

public function __construct()
#3

[eluser]chefnelone[/eluser]
[quote author="AbeEstrada" date="1292894497"]Here is the answer: http://ellislab.com/forums/viewthread/165540/

find the __construct: private function __construct()
and replace "private" with "public"

public function __construct()[/quote]

good , the error message is gone,
But... where do I get the log, in the console's Chrome??
#4

[eluser]AbeEstrada[/eluser]
[quote author="chefnelone" date="1292899000"][quote author="AbeEstrada" date="1292894497"]Here is the answer: http://ellislab.com/forums/viewthread/165540/

find the __construct: private function __construct()
and replace "private" with "public"

public function __construct()[/quote]

good , the error message is gone,
But... where do I get the log, in the console's Chrome??[/quote]

Load the library:
Code:
$this->load->library('ChromePhp');

In your function you can log:
Code:
$this->chromephp->log('yeah');




Theme © iAndrew 2016 - Forum software by © MyBB