application/controllers/Auth.php
/* To check the email is exist */
To check the email is exist
To check the email is exist
public function email_check($email)
    {	
    	$status = $this->Auth_model->email_check($email);    	
    		if ($status){
	            $this->form_validation->set_message('email_check', 'An account already exists with this email ID');
	            return false;
	        }else{
	            return true;
	        }    	      
    }
public function email_check ( $ email ) { $ status = $ this -> Auth_model -> email_check ( $ email ) ; if ( $ status ) { $ this -> form_validation -> set_message ( 'email_check' , 'An account already exists with this email ID' ) ; return false ; } else { return true ; } }
To check the email is exist
To check the email is exist