Welcome Guest, Not a member yet? Register   Sign In
integrate Krumo with CodeIgniter
#1

[eluser]Mahmoud M. Abdel-Fattah[/eluser]
some days ago, I was looking for alternatives for print_r() & var_dump() for debugging my data, and I found this Krumo :
http://krumo.kaloyan.info/

I'm sure you'll like it. so, to integrate it with CI, just do the next simple steps:
1- Rename class.krumo.php to Krumo.php
2- Edit Krumo.php and edit :
a. replace "Class krumo {" with "Class Krumo extends Model {"
b. add after this function :
Code:
function Krumo() {
           parent::Model();
       }
3- Edit krumo.ini for ur needs ( CSS & Theme )
4- FINALLy, Copy Krumo.php, krumo.js, krumo.ini, skins.

now, you can load it easily:
$this->Krumo(YOUR-DATA);

Hope it helps !
#2

[eluser]pistolPete[/eluser]
Why do you need to extend the model base class?
How about using it as a library?
#3

[eluser]Mahmoud M. Abdel-Fattah[/eluser]
Big Grin, you're right, but I wasn't read in the Libraries section YET Smile
#4

[eluser]xwero[/eluser]
if you want a different display for the var_dump function without adding code to your application you can enable xdebug on your development server
#5

[eluser]Mahmoud M. Abdel-Fattah[/eluser]
[quote author="xwero" date="1237045446"]if you want a different display for the var_dump function without adding code to your application you can enable xdebug on your development server[/quote]
This's a good tip too Smile, but I think it's easier to use a class, than install php extension :red:
#6

[eluser]xwero[/eluser]
It's on your development server/machine so you only have to do it once and the configuration is not that difficult. xdebug also provides more powerfull functions than the class.




Theme © iAndrew 2016 - Forum software by © MyBB