I am developing a permission based system which is going to be able to check permission for any functions in controller using codeigniter (HMVC). I want to be able to run a specific function to check permissions right before executing of that function. How is it possible?
Any kind of help or idea is appreciated