[eluser]GamingFusion[/eluser]
I want the script to check for if a user is logged in or not and if yes display the user data if not the guest data.
The user and guest data is the navbar they can see so the guest would see Register | Login and the user would see something like Profile | Edit Profile | Inbox | Logout
for example heres the code i have in the controller under the index function.
Code:
if ($this->tank_auth->is_logged_in()) { // logged in
echo "anchor('auth/edit_prof', 'Edit Profile '); anchor('auth/logout', '| Logout');"
} else { // If not logged in
echo anchor('auth/register', 'Register '); anchor('auth/login', '| Login');
}
bow that doesn't display anything how would i make it display what i have there that i want displayed