[eluser]Todlerone[/eluser]
[quote author="Todlerone" date="1291699661"]Hello everyone. Sorry for the simple questions. I've successfully implemented Ion Auth as a log in. Works great. Now I'm trying to add some functionality to my website. I have a model that stores personal information (limited). All I'm trying to do is add their username to the table (not through a form) for creating/editing the data. The form doesn't error but the $user['username'] comes up empty. Sorry I don't have the code (it's at work). What is the difference between passing variables with $data['username'] and $this->data['username']?
TY[/quote]
Ty Ben. I worked at this for sometime and eventually got it to work. I now understand what I had done wrong. I am however still stuck at the dropdown menu for the create user. I redid the user login form in code I was familiar with but still don't get anything listed.
Code:
function create_user(){
//other standard code from this controller here
if ($this->form_validation->run() == true && $this->ion_auth->register($username,$password,$email,$additional_data)) { //check to see if we are creating the user
//redirect them back to the admin page
$this->session->set_flashdata('message', "User Created");
redirect("admin/admin_main/get_users_array", 'refresh');
}else{ //display the create user form
//set the flash data error message if there is one
$this->data['groups'] = $this->ion_auth_model->get_groups();