[SOLVED] Using Ion Auth to secure website section |
Hi, everyone.
I'm trying to secure the entire members' area of a website using Ion Auth. I have managed blocking the default page (the index() function) in the following way: PHP Code: class Minside extends CI_Controller // Members' area to view orders, change user details and view public profile If the user isn't logged in, they can't access example.com/minside. But they can still access example.com/minside/offentlig_profil. How can i block access to the entire /minside website section without using the same if-statement in all the functions?
Make a constructor and try this..
Code: public function __construct() {
That worked, tapan.thapa. Thanks a lot for your quick and helpful reply. I deeply appreciate the effort.
|
Welcome Guest, Not a member yet? Register Sign In |