Tuesday, November 11, 2014

Yii Rights Configuration - Extending Base Controller from RController

I wont bother to write "How to install Yii rights module" since there are pretty good stuff out there which explains the process like official documentation & this article.

Main focus of this is to highlight a simple configuration step that cost me half a day (was an absolute beginner) after successfully installing Yii rights module.

As per the official documentation, you need to extend application's base controller from RController.

Tricky part for me was to find this base controller which actually resides in below location.

"application_path/protected/components/Controller.php"

Once you extend this base controller as per the official documentation (i.e. from RController), you will be able to figure out the rest.

Good luck with your Yii application !!!!