Janoo
(Pocak87)
1
Hy everybody!
I looking for a solution, to print out any varianles from models, or controllers to check them, without pass thom to the view.
For example: want to check a $variable, I just write printOut($variable) , and I get a blank page with the $variable=>value (like the print_r(Array))
Thanks for help
header('Content-type: text/plain');
print_r($var);
exit;
Janoo
(Pocak87)
3
Thank You
I have an class called Extra and that’s it:
extra::e($variable); //to call
public function e($var){
header('Content-type: text/plain; charset=utf-8');
print_r($var);
exit;
}