Wednesday 8 May 2013

How to Log PHP Errors and SQL to Chrome Console in CakePHP

First install ChromeLogger.

Setting up Chrome Logger and Error Handling

After installing the chrome plugin you?ll want to add the associated server-side library to app/Vendor/ChromePhp/ChromePhp.php. Next create a new file for handing errors in your CakePHP 2 project. Create a new class at app/Lib/AppError.php and add in the following code:

App::import;//in app/Lib/AppError.phpclass AppError { pub...
crawled from : Cakephp

No comments:

Post a Comment