Studyon Minte9.com
ZF 1.0




Default



Default error handling

index.php
---------
$frontController->setDefaultModule('default');
$frontController->throwExceptions(false);

Application/modules/default/controllers/ErrorController.php
-----------------------------------------------------------
<?php
class ErrorController extends Zend_Controller_Action {

	public function init() {
		$this->initView();
		//$this->_helper->layout->setLayout('frontend-404');
	}
	
	public function errorAction()	{
	}
}

Application/modules/default/views/scripts/error/error.phtml
-----------------------------------------------------------
<b>Not found</b>

http://zfsite/module/not/exists (forward to http://zfsite/default/error/error)
// DISPLAY: not found


http://framework.zend.com/manual/en/zend.controller.plugins.html
http://codeutopia.net/blog/2009/03/02/handling-errors-in-zend-framework/