为什么我的密码没有插入数据库
模型:
function addUser($userData = NULL, $passwordHash)
{
$this->db->insert('users',$userData,$passwordHash);
return TRUE;
}
控制器:
public function addUser()
{
$data['pageTitle'] = 'GA Add User';
$this->load->view('_assets/header', $data);
$this->load->view('addUser', $data);
$this->load->view('_assets/footer');
$userData = array(
'fName' => $this->input->post('userFirstName', TRUE),
'lName' => $this->input->post('userLastName', TRUE),
'email' => $this->input->post('userEmail', TRUE)
);
$passwordHash = sha1($this->input->post('userPassword', TRUE));
$this->db->escape($userData);
$this->user_model->addUser($userData, $passwordHash);
}