Beispiel #1
0
 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;
     }
 }
Beispiel #2
0
 public function __construct()
 {
     parent::__construct();
     // Load our tasks into the sytem.
     require APPPATH . 'config/cron.php';
 }
Beispiel #3
0
 public function __construct()
 {
     parent::__construct();
     $this->load->config('forge');
 }