application/controllers/Common.php
/*Check the user present or not*/
Check the user present or not
Check the user present or not
public function user_check($userId)
    {	
    	$status = $this->Common_model->user_check($userId);	
    	if ($status){
        	return true;            
        }else{
            $this->form_validation->set_message('user_check', '{field} is do not exists');
            return false;
        }
    }
public function user_check ( $ userId ) { $ status = $ this -> Common_model -> user_check ( $ userId ) ; if ( $ status ) { return true ; } else { $ this -> form_validation -> set_message ( 'user_check' , '{field} is do not exists' ) ; return false ; } }
Check the user present or not
Check the user present or not