我使用HMVC在codeigniter 2中开发了CMS,现在我正在尝试迁移到Codeigniter 3.我有以下问题。
这适用于查看codeigniter 2
<?PHP $configuracion = $this->load->controller('configuracion/todos');
?>
我收到了错误:致命错误:无法在第57行的/home/xxxx/public_html/application/third_party/MX/Base.php中重新声明类CI
这是控制器:
<?php
class Configuracion extends MX_Controller {
public function __construct() {
parent::__construct();
$this->load->model('configuracion_m', 'Configuracion_m');
}
function todos() {
return $this->Configuracion_m->get_all();
}
感谢名单!!!!!