我在某个Controller里边写下:
public function filterA(){
throw new CHttpException(404);
}
在config里边设置
errorHandler
发现只触发了异常,而没有被errorHandler捕捉到。
我在某个Controller里边写下:
public function filterA(){
throw new CHttpException(404);
}
在config里边设置
errorHandler
发现只触发了异常,而没有被errorHandler捕捉到。