Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function email_check($email) {
- $this->load->model('eloki_model');
- $check = $this->eloki_model->email_check($email);
- if ($check) {
- $this->form_validation->set_message('email_check', 'The email "' . $email . '" already exists.');
- return false;
- } else {
- return true;
- }
- }
- public function username_check($username) {
- $this->load->model('eloki_model');
- $check = $this->eloki_model->username_check($username);
- if ($check) {
- $this->form_validation->set_message('username_check', 'The username "' . $username . '" already exists.');
- return false;
- } else {
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement