array( 'field' => 'password', 'label' => 'Password', 'rules' => array('required','min_length' => 8) ), array( 'field' => 'confirm_password', 'label' => 'Password Confirmation', 'rules' => array('matches' => 'password') ),
$u = new User(); $u->password = $this->input->post('password'); $u->confirm_password = $this->input->post('confirm_password'); if(!$u->save()) { echo $u->error->string; } else { echo 'Success'; }