【发布时间】:2010-12-12 14:48:12
【问题描述】:
我以这种方式在Bootstrap.php 中设置默认errorHandler:
public function _initErrorHandler()
{
$frontController = Zend_Controller_Front::getInstance();
$plugin = new Zend_Controller_Plugin_ErrorHandler(
array(
'module' => 'default',
'controller' => 'error',
'action' => 'error'
));
$frontController->registerPlugin($plugin);
return $plugin;
}
我怎样才能通过application.ini 选项做同样的事情?
【问题讨论】:
-
错误处理器不是默认激活的吗?
-
@ArneRie 是的。但是在默认模块中。当我将其他模块设置为默认模块时,我需要一种简单的方法来更改它。
标签: zend-framework configuration config zend-application