On Feb 15, 2011, at 11:32 AM, Alexeev Nikolay wrote: > If url is wrong, for example '/ert/ept/', than i am get web-server's 404 > page instead of ErrorController's message. > > If url is: '/error/error/' than ErrorController's message appears. > > Also i put 'die();' in the end of ErrorController or error/error.tpl. In > this case blank page appears. > > Also i commented string '$this->getResponse()->setHttpResponseCode(404);' in > ErrorController. Than i get ErrorController message. It looks like OK. But i > think, that such solution is wrong. > > Can you propose reasons of such behaviour?
Have you set the APPLICATION_ENV in your htaccss to development. head -n1 public/.htaccess SetEnv APPLICATION_ENV development The shipped index.php will set this environment variable to 'production' if you do not set it yourself. When your config is parsed the following sections will be used in your application corresponding to the APPLICATION_ENV variable. [production] phpSettings.display_startup_errors = 0 phpSettings.display_errors = 0 vs. [development : production] phpSettings.display_startup_errors = 1 phpSettings.display_errors = 1 resources.frontController.params.displayExceptions = 1 - Frank
