$this->load->vars() not working correctly. #314

Closed
fadillzzz opened this Issue Aug 26, 2011 · 1 comment

Comments

Projects
None yet
1 participant

I have this code below in my constructor. Basically this will assign the username and a list of categories to the $username and $categories respectively.
But for some reason, when I call the variable form the view files, PHP throws notice errors regarding undefined variables.
It was working when I was using CI 2.0.2. The problem exists when I upgraded to CI 2.0.3

$this->load->vars( array( 
    'username'      => $this->tank_auth->get_username(), 
    'categories'    => $this->categories(NULL, TRUE) 
    )
);

I finally got it fixed. Sorry about this, turns out the problem is in the parser library I'm using...

fadillzzz closed this Aug 26, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment