application/controllers/admin/User.php
/* Make test or normal multiple users */
Make test or normal multiple users
Make test or normal multiple users
public function testMultipleUsers(){
        $data = $this->input->post('data');   
        $query = $this->User_model->testMultipleUsers($data);
        if ($query) {
            $response = array(
                            'ResponseCode' => 1,
                            'ResponseMessage' => 'SUCCESS', 
                            'Comments' => 'User status changed successfully.',
                            'Result' =>true,
                            'Status' =>200
                         );
            echo json_encode($response);
        }else{
            $response = array(
                            'ResponseCode' => 0,
                            'ResponseMessage' => 'FAILURE', 
                            'Comments' => 'Fail to change user status',
                            'Result' =>false,
                            'Status' =>400
                         );
            echo json_encode($response);
        }
    }
public function testMultipleUsers ( ) { $ data = $ this -> input -> post ( 'data' ) ; $ query = $ this -> User_model -> testMultipleUsers ( $ data ) ; if ( $ query ) { $ response = array ( 'ResponseCode' => 1 , 'ResponseMessage' => 'SUCCESS' , 'Comments' => 'User status changed successfully.' , 'Result' => true , 'Status' => 200 ) ; echo json_encode ( $ response ) ; } else { $ response = array ( 'ResponseCode' => 0 , 'ResponseMessage' => 'FAILURE' , 'Comments' => 'Fail to change user status' , 'Result' => false , 'Status' => 400 ) ; echo json_encode ( $ response ) ; } }
Make test or normal multiple users
Make test or normal multiple users
// print_r($data);exit();    