This happens only when thrown outside controller’s action. (e.g. CController::init)
Cause
public function actionIndex() { Throw new CHttpException(404, ' '); }
works well.
Is this a normal behiaviour?
This happens only when thrown outside controller’s action. (e.g. CController::init)
Cause
public function actionIndex() { Throw new CHttpException(404, ' '); }
works well.
Is this a normal behiaviour?
I’m facing the same problem. :’(