How to use error_reporting

1

I've been having a problem on my page for some time. I rolled my Model , Controller and View and nothing. Simply the screen goes white (but no error appears) and nothing works.

I want to know the best way to find this problem. Would it be with error_reporting ? If so, how do I use it?

    
asked by anonymous 23.03.2015 / 19:43

1 answer

2

Hello,

These two commands can resolve your issue. They should be the first few lines of the application.

ini_set('display_errors', true); // Configura o PHP para mostrar os erros
error_reporting(E_ALL); // Altera o handler de erros para mostrar todos os tipos

error_reporting: link

ini_set: link

    
23.03.2015 / 19:48