CodeIgniter load controller within a controller HMVC

风流意气都作罢 提交于 2019-12-02 10:24:28

I found a solution at https://github.com/EllisLab/CodeIgniter/pull/1818 There is a real HMVC and it works. I hope that this will be included in upcoming CodeIgniter release.

My test results are shown in the images. controllers/demo.php

class Demo extends CI_Controller {

    public function index()
    {
        $this->load->controller('welcome');
        $this->load->view('demo');
    }
}


(source: github.com/EllisLab/CodeIgniter)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!