I am working on a web project. Basically it is a School Management System which has different types of users who will access the website, such as: Admin, Principal, Teachers, Students and Parents etc. All of these user roles have limited set of permissions which defines what they can do inside the website. For example a teacher can create a quiz exam while a student can't.
I have recently learned about different methods of creating a website which has multiple user roles. I found that Role Based Access Control (RBAC) system is the best choice for my project because it is flexible and easy to maintain.
So, can you people tell me how can I implement Role Based Access Control (RBAC) system by using PHP framework Codeigniter?