JREAM
2/26/2013 - 4:19 PM

test

test

    public function create_save()
    {
        $this->session->is_type(array('admin', 'owner'));
        
        if ($this->form_validation->run('user_create') == false) {
            $this->create_view();
            return false;
        }
        
        $role    = $this->input->post('role');
        $login   = $this->input->post('login');        
        $password= $this->input->post('password');
        $email   = $this->input->post('email');
        $group_id= $this->input->post('group_id');
        
        $result = $this->user_model->create($role, $login, $password, $email, $group_id);
        redirect(site_url('user'));
    }