set_output() 공개 메소드

Sets the output string.
public set_output ( string $output ) : CI_Output
$output string Output data
리턴 CI_Output
예제 #1
0
 private function processResponseData(array $response)
 {
     if (!$this->input->is_ajax_request()) {
         redirect('/');
     }
     $this->output->set_content_type('application/json');
     if ($response['code'] == 200) {
         if ($response['data']['success']) {
             $this->output->set_output(json_encode($response['data']['data']));
         }
     }
 }