2011-11-11 9 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

関連する問題