Stop execution after call $this->load->view()

后端 未结 5 1028
野性不改
野性不改 2021-01-18 01:40

In Codeigniter, How could we stop the execution after load a view?

I have tried this

function index() {
    $this->load->view(\'myView\');
             


        
5条回答
  •  温柔的废话
    2021-01-18 02:01

    AFAIK, You can't, because Codeigniter have to run other script after you load a view, such as CI need to call display() method from Output class to render your view. In your case(if i'm not misunderstanding), I suggest you to just load your view at the end of your controller.

提交回复
热议问题