Open GoogleCodeExporter opened 9 years ago
Where do You throw an exception?
PublicController or elsewhere?
Original comment by lowtower1974@gmail.com
on 8 Mar 2010 at 7:34
Open Admin_NavigationController and in the init throw an exception
class Admin_NavigationController extends Zend_Controller_Action
{
public function init()
{
throw new Exception('404');
In production mode it leads to a 404 page, but using the public layout, and in
development mode it leads to
Fatal error: Uncaught exception 'Exception' with message '404
Original comment by Darha...@gmail.com
on 8 Mar 2010 at 9:33
Hello Darhazer,
in 'development' mode, this is the desired behaviour!
In the application.ini, we decide to throw exceptions in 'development' mode,
but not
in 'production' mode.
For the latter, I confirm this is a bug.
Thanks for bringing this to our attention!
Cheers,
LT
Original comment by lowtower1974@gmail.com
on 28 Apr 2010 at 2:31
Original comment by lowtower1974@gmail.com
on 28 Apr 2010 at 4:07
Original issue reported on code.google.com by
Darha...@gmail.com
on 7 Mar 2010 at 5:21