if i call a not exist method or action, ZF going to fire a exception.
i have read tutorial about set up ErrorController class to capture
those kind of exception, but was not working, the ErrorController
class did not capture any exception. i do not why , I have followed
instruction, and
my ErrorController is under my application controller directory.
then i have looked source code, and found that ErrorController be called in
postDispatch, but
that non method/action exception actually fired before postDispath.
in dispatch method of Front.php , following code fire non method/action
exist exception.
try {
$dispatcher->dispatch($this->_request,
$this->_response);
} catch (Exception $e) {
if ($this->throwExceptions()) {
throw $e;
}
$this->_response->setException($e);
}.
so my question is how to trap exception that fired by
$dispatcher->dispatch($this->_request, $this->_response);
I do not want to do like
try {
$frontController->dispatch();
} catch {
}
i want do some thing like set up a ErrorController class to trap exception.
regards.
--
View this message in context:
http://www.nabble.com/capture-exception-tp14375842s16154p14375842.html
Sent from the Zend Framework mailing list archive at Nabble.com.