Symfony 2.1 enable/disable stack traces -



Symfony 2.1 enable/disable stack traces -

few moments ago realised symfony prints out exceptions in prod env. how can turn off?

after little bit of looking, seems how (there improve solution couldn't find it).

under web/app.php, alter $kernel = new appkernel('prod', true); - true here sets display_errors true, alter false.

if fails, should ensure display_errors turned off (if it's production, best done in php.ini rather using ini_set).

symfony-2.1

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -