No Error Page


When going to an wrong URL (like with a non existing controller and/or action, I get a: CHttpException You are not authorized to perform this action (\framework\web\auth\CAccessControlFilter.php:182).

And not a error page. Why is that?

In my config:




			'caseSensitive' => false,	

			'urlSuffix' => '.html',	











in my site controller:




Be sure to set access for all user types to error action in site controler.


Crap, I had this in my main Controller in Components, but this is off course overruled by the accessRules in the SiteController.

So I’ve added the error action to the SiteController.

	public function accessRules()


		return array(

			// Guests allow.





			// Deny all safety.






Thanks a lot Lightning McQueen!

Nice, thanks…