[Solved] Hide registration and login buttons when a user logged in? [closed]
<div id=’nav’> <?php if(is_logged_in()) { if(is_admin()) { echo anchor(‘admin’,’Admin Dashboard’); } echo anchor(‘user/logout’,’Logout’); echo anchor(‘users/profile’,’Profile’ . ‘ [‘ . $_SESSION[‘user_name’] . ‘]’); } else { echo anchor(‘user/login’,’Login’); echo anchor(‘user/signup’,’Signup’); } echo ‘ ’ . anchor(base_url(),’Home’); ?> </div> 1 solved Hide registration and login buttons when a user logged in? [closed]