ChromePHP is a php class that allow you to do php logs in javascript console.
i have installed the chrome extention ChromePHP, it’s activated
i was trying to do this:
config.php:
include_once ('ChromePhp.php');
$trace = new ChromePhp();
myClass.php:
include_once ('config.php');
$trace->log("test");
but it’s not working some help please
i get :** Fatal error: Call to private ChromePhp::__construct() from invalid context in C:\wamp\www\partenariat\autres\config.php on line 11**
The constructor is private, so you can’t use
newon it. To get an object, you need to use ChromePhp’sgetInstancemethod.