I am using Yii to serve some JSON webservices for a mobile app. I am using the Yii build in authentication system.
I have a specific controller that I setup access rules so only authenticated users can call the controller functions. When the user is NOT logged in, I want to return a custom JSON response instead of re-directing to the default page. Is there is a way to do this without removing the access rules and using "getIsGuest()?" on each controller?
I believe it's cleaner to do use access rules?