title: What is the best way to run a function right before any other function in codeigniter?
body: <p>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?</p>
  
  <p>Any kind of <strong>help</strong> or <strong>idea</strong> is appreciated</p>