Action Helper에서 예외 (예 : throw new Zend_Exception('You are not allowed',403);
)가 발생하면 ErrorHandler가이를 catch하지 않습니다. 나는 Fatal error: Uncaught exception 'Zend_Exception' with message 'You are not allowed' in..
을 얻었습니다.액션 도우미에서 예외를 잡는 방법?
전 frontController에서도 throwExceptions = false를 설정했습니다.
어떻게 액션 컨트롤러에서 예외를 잡을까요?
throwExceptions를 false로 설정하면 Zend Framework 자체가 예외를 throw하지 않습니다. 코드에서 특별히 throw되는 예외는 영향을받지 않습니다. –
HTTP 상태 403 금지라는 전체 요청 신호를 보내고 있습니까? – hakre