[eluser]pmhart[/eluser]
I am writing a view that prints out the exact same thing in two different areas, so I wrote a function that prints it out in the view.
However, the function doesn't seem to have access to the "is_logged_in" variable passed to the view:
$data["is_logged_in"] = true;
$this->load->view("view_name", $data);
I tried using "global", I tried passing $this to the function.
There are a lot more than just the $is_logged_in variable, otherwise I would pass it as a param and not worry about accessing it directly from the code.
Can anyone help me figure out how I can access these $data vars?