Created
August 30, 2011 04:50
-
-
Save ruthlessfish/1180210 to your computer and use it in GitHub Desktop.
CLI base controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Cli_Controller extends CI_Controller { | |
public function __construct() | |
{ | |
parent::__construct(); | |
$this->input->is_cli_request() OR die('Access denied.'); | |
$this->load->library('cli'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment