Page 1 of 1

Looking to Add Variables to $user->data[]...

Posted: Sat Apr 11, 2015 2:55 pm
by Jackanape
I'm digging around, trying to sift through various functions, sessions.php, etc., and having a tough time finding this. I'd like not to have to make a data call for every time the header is referenced, if I can just use the $user->data[] array...

Where can this best be done?

Re: Looking to Add Variables to $user->data[]...

Posted: Sat Apr 11, 2015 11:24 pm
by Elsensee
The $user->data array consists of the data for every column in the users table.
So by adding a new column to the users table, you're adding a new key-value-pair to the $user->data array. ;)

Re: Looking to Add Variables to $user->data[]...

Posted: Sun Apr 12, 2015 3:30 pm
by Jackanape
Alright! Thanks, and CHEERS!