I am trying to generate 404 error using the following call:
throw new \yii\web\CHttpException(404, 'User not found')
I get error 500 sent to the browser. When I look into nginx logs I see:
Any ideas how to fix?
I am trying to generate 404 error using the following call:
throw new \yii\web\CHttpException(404, 'User not found')
I get error 500 sent to the browser. When I look into nginx logs I see:
Any ideas how to fix?
Yii 1.x
http://www.yiiframework.com/doc/guide/1.1/en/topics.error#raising-exceptions
(Yii 2
http://www.yiiframework.com/doc-2.0/guide-runtime-handling-errors.html#using-error-handler)
Great , thanks!