Welcome Guest, Not a member yet? Register   Sign In
Ok to set userdata session variables in admin controller?
#5

[eluser]CodeIgniteMe[/eluser]
[quote author="Karman de Lange" date="1340259175"]Have look at:
Code:
$this->load->vars($array)
Passes array of variables to access in your views:

Not tried but this might work;

Code:
$session_data = $this->session->userdata('logged_in');

$this->load->vars($session_data)
then in the view you will have
Code:
Username: <?php echo $usernane ?>

[/quote]

correct, this is a much acceptable solution


Messages In This Thread
Ok to set userdata session variables in admin controller? - by El Forum - 06-20-2012, 11:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB