I am writing a web application using codeigniter.
I want to authenticate the privilege of our users before they access the page.
Actually nearly all controller action except the log in page need to call the model and use
$this->Users->validate($username, $password)
I want to make it general for every controller. Do I need to inherit the controller class? How could i do that?