Welcome Guest, Not a member yet? Register   Sign In
Problem with views
#4

[eluser]@li[/eluser]
Just do something like this in your header.php,just above the column where you display the login form or the user panel menu:
Code:
<div>
   &lt;? if (! $this->auth->isLoggedIn()):?&gt;
     &lt;? $this->load->view('login_form');?&gt;
   &lt;? else: ?&gt;
     &lt;? $this->load->view('user_menu');?&gt;
   &lt;? endif;?&gt;
</div>

Note that you'll have to change the line
Code:
$this->auth->isLoggedIn()
with your own function that would return true if someone is logged in and false if they're not


Messages In This Thread
Problem with views - by El Forum - 12-06-2008, 04:19 PM
Problem with views - by El Forum - 12-06-2008, 04:46 PM
Problem with views - by El Forum - 12-06-2008, 05:20 PM
Problem with views - by El Forum - 12-07-2008, 07:04 AM
Problem with views - by El Forum - 12-07-2008, 11:01 AM
Problem with views - by El Forum - 12-07-2008, 12:46 PM
Problem with views - by El Forum - 12-08-2008, 12:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB