Skip to content

Instantly share code, notes, and snippets.

@ruthlessfish
Created August 30, 2011 04:50
Show Gist options
  • Save ruthlessfish/1180210 to your computer and use it in GitHub Desktop.
Save ruthlessfish/1180210 to your computer and use it in GitHub Desktop.
CLI base controller
<?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