application/controllers/Common.php
/* To check the email is exist */
To check the email is exist
To check the email is exist
public function update_email_check($email)
    {	
    	$post_data = $this->post();
    	$userId = $post_data['userId'];
    	$status = $this->Common_model->update_email_check($email,$userId);    	
		if ($status){
            $this->form_validation->set_message('update_email_check', 'An account already exists with this email ID');
            return false;
        }else{
            return true;
        }    	      
    }
public function update_email_check ( $ email ) { $ post_data = $ this -> post ( ) ; $ userId = $ post_data [ 'userId' ] ; $ status = $ this -> Common_model -> update_email_check ( $ email , $ userId ) ; if ( $ status ) { $ this -> form_validation -> set_message ( 'update_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