[eluser]Sven Delle[/eluser]
Weird thing is they both state to be 5.4. But I can see a difference in the classes.
Line 51 in the old /third_party/MX/Controller.php says:
Code:
$this->load->_init($this);
And the "new" (as in latest download) says:
Code:
$this->load->initialize($this);
And in the /third_party/MX/Loader.php:
There's no __construct function but an initialize function instead, and a check for MX_Controller:
Code:
if (is_a($controller, 'MX_Controller')) {
/* reference to the module controller */
$this->controller = $controller;
/* references to ci loader variables */
foreach (get_class_vars('CI_Loader') as $var => $val) {
if ($var != '_ci_ob_level') {
$this->$var =& CI::$APP->load->$var;
}
}
} else {
parent::initialize();
}
But no matter what: it doesn't fix the form_validation callback problem, and screws up my whole app: no views load anymore!?
And by the way I never extend MX_Controller or MX_Loader anywhere in my app, but I see references to it all over the place. My modules works just fine extending CI_Controller. If I try extending MX_Controller I get all sorts of errors, so that not a direction to take.