In Codeigniter, How could we stop the execution after load a view?
I have tried this
function index() {
$this->load->view(\'myView\');
You should call load->view at the end of your controller method. If you stop execution then other parts of the theme will not be loaded. Your view file contents will only be rendered. You can use this method for ajax calls where you do not want any thing else should be rendered except what you want to render as out put of ajax call.