Welcome Guest, Not a member yet? Register   Sign In
passing the same variables to all the views (to handle login status)
#4

[eluser]mddd[/eluser]
You can 'give' variables to all views using $this->load->vars($array);
Example:
Code:
// set variables
$this->load->vars('name'=>'Pete', 'profilelink'=>site_url('profile/pete'));
// now you can use $name and $profilelink in any view.


Messages In This Thread
passing the same variables to all the views (to handle login status) - by El Forum - 04-29-2010, 03:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB