integrate Krumo with CodeIgniter |
[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() { 4- FINALLy, Copy Krumo.php, krumo.js, krumo.ini, skins. now, you can load it easily: $this->Krumo(YOUR-DATA); Hope it helps !
[eluser]Mahmoud M. Abdel-Fattah[/eluser]
, you're right, but I wasn't read in the Libraries section YET
[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 , but I think it's easier to use a class, than install php extension :red:
[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. |
Welcome Guest, Not a member yet? Register Sign In |