We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

print_r($this);exit; Doesnt work in a controller

I remember at the beggining it was prining a huge object... however since few days i notice it takes some time for the page to load, and the output is nothing ( just white screen) there is nothing in apache error log.

Does somebody has an idea what did i screw ?



47.7k

Have you got display errors switched on in your php.ini ?



17.5k

Could you maybe var_dump($this);die(); instead?

edited Sep '15

You have to add {{ content() }} to your view or send the output to a file file_put_contents("/tmp/debug.txt", print_r($this, true));



85.5k
edited Sep '15

ok i tried, it doesnt work.

however.. if i disable "auth" includes its working

I use this guy work for the login: https://github.com/calinrada/PhalconUserPlugin

but i only copy/paste some of his stuff, actually auth.php, security.php and two other models. There is some problem for sure but unfortunatly Its immposible to tell where exacly :(

Thx for the help

//edit all my error displays are on and i code on E_ALL