I want to throw an exception if a user is banned or a website is off. I tried realized it in beforeAction method in Controller class, but I have a problem. When I write
throw new CHttpException(403, 'Forbidden');
I give next
. I will be happy, if somebody can help me…
I don’t believe that nobody don’t know and never encountered with it…
Go out of debug mode. That should fix it.