I've been trying to figure out how to do something like below in the template:
Code:
if($this->auth->is_logged_in()){
// display admin link (if admin) and logout link
}else{
// display login link
}
In your backend views you call $this->auth->restrict(), and I've tried to use the
"is_logged_in" function of the auth library but it doesn't seem to be auto-loaded for the basic homepage. Any ideas on how to get around this? I'm currently working on it, and will let you know if I find out a solution. Thanks!