• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
control login

#1
[eluser]Cinghius[/eluser]
Hello everyone, I have the following code in the page view:
<code>
$CI = get_instance();
if ($CI->tank_auth->is_logged_in())
{
// yes
}
else
{
// no
}
</code>
I would insert it into the controller and not in view, perhaps returning as a result of a variable you can control the view, if it sees a div logged in, otherwise you will see another ..... how can I do.
Thanks to all


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.