[eluser]ozy123[/eluser]
I'm using tank auth and just trying to figure out how best to implement it.
I have a bookings system.
I have controllers to retrieve a booking, to delete a booking etc I don't want a user to be able to copy and paste a URL to delete bookings. Therefore should I do a check that the user is logged in before the controller loads views etc
i.e. I begin my controller as such :
if ($this->tank_auth->is_logged_in()) {
$this->load->view;
}
else {redirect('/auth/login/');};
?
Or is there a better way?
Sorry if its an obvious question, still grappling. Thanks in advance