Welcome Guest, Not a member yet? Register   Sign In
Something like laravel "dd" function
#11

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.
Reply
#12

(This post was last modified: 12-19-2016, 05:28 PM by prezire.)

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.
Long live CodeIgniter!
Reply
#13

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

See https://codeigniter4.github.io/userguide...ng.html#dd
Reply




Theme © iAndrew 2016 - Forum software by © MyBB