So the other day while shopping at Pat Catans craft HQ I stumbled upon an all white 70oz coffee mug. I had to have it. I also had to have some sharpie paint markers so that I could doodle and write all over it to my hearts content. This my friends is the result, but by no means final as there is still plenty of whitespace left to fill (with coffee at least).
CodeIgniter is an awesome PHP Web Framework with a light footprint and just easy to use. Despite that its easy to use, we still run into problems and errors when we get deep in the trenches of testing our applications.
PhpConsole is a developer tool for Google Chrome by Barbushin Sergey which, when installed, will output PHP errors and debugging in the Chrome console, and/or by way of notification popups. This is a pretty handy tool and its uses can certainly be applied to any PHP application your writing for the browser. However in this instance I’m going to show you how to throw it up into CodeIgniter quite easily.
First goto https://chrome.google.com/webstore/detail/nfhmhhlpfleoednkpnnnkolmclajemef in Chrome and install PhpConsole. In the description on that page you’ll see the google code repository link for PhpConsole (and Lagger as well), click the code repo link and then download the .zip file in the downloads section.
Extract the .zip file and place PhpConsole into the root of your CodeIgniter application, right next to index.php
Next open that index.php file and at the very top add the following lines:
And there you have it, test some errors in your codeigniter application and they will show up in Chrome to help you get rid of those frustrating ones
Hope this helps!