Home >Web Front-end >HTML Tutorial >Yii error page processing_html/css_WEB-ITnose
[Error page processing]
Accessing a wrong controller
Accessing a wrong method
Some controllers and methods prohibit access
The above access will prompt the error message 404 403
The above error message is not convenient for external users to see.
1. Security risks
2. Poor user experience
The error message is defined in site/error.
Now we are going to customize the error page to display our error message