Custom 403 Page when using Access Rules

anyone know how to set a custom 403 page for when users are denied from an access rule?

since CAccessControlerFilter throws a CHttpException in method accessDenied it appears the only option would be to extend CAccessControlerFilter, overwrite accessDenied and have Yii use that class. But i cannot figure out how to tell Yii to use my new class instead of the CAccessControlerFilter class.

any ideas?

Did you try what the guide says i.e protected/views/system.


thanks tommy, that’s perfect. i had originally tried that but it wasn’t until i read section 3 in that link u provided that i realized that when you generate an app using Yii that it sets a custom error handler for you. once i removed that it worked perfectly

thanks again!