Can only find Yii 2 exception when searching online. I’d like to do
throw new HttpException(404)
or similar
Can only find Yii 2 exception when searching online. I’d like to do
throw new HttpException(404)
or similar
I do not remember why but it seems you have to write your own exception classes.
See Yii3 packages. All implement their own. Even demo app.
https://github.com/search?q=org%3Ayiisoft+NotFound+language%3APHP&type=code&l=PHP
Indeed, thank you.