2011-11-11 4 views

답변

14

당신은 내가 찾던거야 그 if is a CLI request:

class Mycontroller extends CI_Controller { 

    function __construct() 
    { 
    parent::__construct(); 

    if(!$this->input->is_cli_request()) 
    { 
     // echo 'Not allowed'; 
     // exit(); 
    } 
    } 

} 
+1

을 확인 할 수 있습니다. 감사. – applechief

관련 문제