Welcome Guest, Not a member yet? Register   Sign In
Ion Auth - Lightweight Auth System based on Redux Auth 2

[eluser]Todlerone[/eluser]
[quote author="Ben Edmunds" date="1291363833"]Todlerone,

Are you passing a proper group name in your register method call? Is your default group setup properly in the config file?[/quote]

TY again Ben. Since I couldn't pinpoint what I changed that caused the problem I just recopied the original model and controller and started over. I'm still getting the error. But that's ok because I want to add a form field to select a user group anyway this should take away the NULL value. I was able to add the form field and pass the value. Is there a way to pass the get_groups() array to the form data array?

Code:
$groups=$this->ion_auth_model->get_groups();

$this->data['group_id'] = array('name' => 'group_id',
'id' => 'group_id',
'type' => 'text',
'value' => $this->form_validation->set_value('group_id'),
);

How could I use:
Code:
echo form_dropdown('group_id', $groups);
Or should I pass a $data['groups'] over to the view and echo it out there.

TY for your time


Messages In This Thread
Ion Auth - Lightweight Auth System based on Redux Auth 2 - by El Forum - 12-03-2010, 05:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB