views:

31

answers:

1

I read via this post how to turn on error reporting in Zend Framework but WHERE exactly do you put these statements? I've tried in public/index.php, in the file I'm working in, initializer.php but nothing prints out errors, always just a blank screen.

It's beyond me why a framework would come with a setting like this by default. Anyone know how I can see my php errors?

A: 

You should put the code in the beginning of your script which is executed when URL is called.

If the url is www.example.com, put the lines at the beginning of index.php.
If it's www.example.com/news.php, put it in news.php

This is actually not a question of Zend Framework, rather your php.ini settings.
Check out this php.ini settings

michal kralik
I'm aware of the php.ini settings but afaik Zend overrides those too.
stef