Skip to content

Instantly share code, notes, and snippets.

View ivanotOrozco's full-sized avatar

Ivanot ivanotOrozco

View GitHub Profile
@ivanotOrozco
ivanotOrozco / php
Created July 2, 2019 22:09
Fast debuger on Codeigniter like dd() from Laravel
<?php
// locate on helpers and load from config/autoload.php $autoload['helper']
// on any place of project call dd([$my, $vars, $to, $see]); and reload de browser
if(!function_exists('dd'))
{
function dd($params)
{
echo '<div id="dbg-screen" style="background-color: #000; color: #00FF10 !important; width: 100%;height: 700px;position: absolute;padding: 10px;top:0;left:0;z-index: 10000; overflow:scroll;">';
echo '<span id="close-btn-dbg" style="position:relative; top:0px; left:95%;">-</span>';
echo '<pre style=" color: #00FF10 !important">';