CodeIgniter Forums
Something like laravel "dd" function - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29)
+--- Thread: Something like laravel "dd" function (/showthread.php?tid=66846)

Pages: 1 2


RE: Something like laravel "dd" function - kilishan - 12-12-2016

Kint is packaged along wth CI4 already. It doesn't work in production environment, though, so make sure you switch your environment to development once you download to get access to that, the debug toolbar, and the nice exception screens.


RE: Something like laravel "dd" function - prezire - 12-12-2016

I usually create a helper function like:

PHP Code:
function d($data$exit false)
{
 
 echo '<pre>',
       
print_r($datatrue),
       
'</pre>';
 
 if($exit === true) exit;


But Kint is way much better.


RE: Something like laravel "dd" function - isaacongoma - 12-14-2022

(12-11-2016, 04:00 AM)kenjis Wrote: If you like the output like dd, you can use http://symfony.com/doc/current/components/var_dumper.html with Composer.
Thanks so much for this


RE: Something like laravel "dd" function - kenjis - 01-21-2023

See https://codeigniter4.github.io/userguide/testing/debugging.html#dd