application/controllers/Common.php
/*Check the login user is present and also in tribe*/
Check the login user is present and also in tribe
Check the login user is present and also in tribe
public function user_in_tribe_check($userId = null,$searchId = null)
    {	
    	$status = $this->Common_model->user_in_tribe_check($userId,$searchId);	
    	if ($status){
        	return true;            
        }else{
            $this->form_validation->set_message('user_in_tribe_check', '{field} does not exists in the tribe');
            return false;
        }
    }
public function user_in_tribe_check ( $ userId = null , $ searchId = null ) { $ status = $ this -> Common_model -> user_in_tribe_check ( $ userId , $ searchId ) ; if ( $ status ) { return true ; } else { $ this -> form_validation -> set_message ( 'user_in_tribe_check' , '{field} does not exists in the tribe' ) ; return false ; } }
Check the login user is present and also in tribe
Check the login user is present and also in tribe