public function __construct() { parent::__construct(); $this->load->config('forge'); // Detect if we're genning in a module if ($module = CLI::option('module')) { $this->module = $module; $folders = config_item('modules_locations'); if (is_array($folders)) { $this->module_path = $folders[0] . strtolower($module) . '/'; } } // Should we overwrite files? if (CLI::option('overwrite')) { $this->overwrite = true; } }
public function __construct() { parent::__construct(); // Load our tasks into the sytem. require APPPATH . 'config/cron.php'; }
public function __construct() { parent::__construct(); $this->load->config('forge'); }