Codeigniter HMVC from CLI: not entering controller Codeigniter HMVC from CLI: not entering controller codeigniter codeigniter

Codeigniter HMVC from CLI: not entering controller


If you have added subclass_prefix in config file as " $config['subclass_prefix'] = 'MY_'; " . Try MY_Preferencias.php instead of Preferencias.php

If you did not used $config['subclass_prefix'] = 'MY_'; and calling session library as $this->load->library('session'); it is taking CIs native session library instead of your custom MY_Session.php

Here is the link


I think you should add constructor

class Cron extends MX_Controller{    public function __construct() {       parent::__construct();       // Any conditions/triggers while constructor loads.    }    public function generatepdfs($start_date = null, $end_date = null)    {                   echo 'Not reached'; exit;            $this->load->module('facturation/documentscontroller');            $this->documentoscontroller->generatepdfs($start_date, $end_date);    }}

I've not tested the code. Just give it a try.