Would the following code in a controller prevent the nextFunction() from running?
$this->load->view('foo');
nextFunction();
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ostensibly, that seems to be the case. Apparently, CI will combine calls to multiple views into one response, so that you can assemble a page (response) from multiple pieces. However, that doesn’t mean that it returns control to the controller.
You can have the call to
loadreturn that processed view as a string. That has to allow you to do further processing in the controller.e.g.
This would require that you echo $foo_string yourself, so that it’s displayed in the browser.
See “Returning views as data” at the very bottom of this page, in the CI user guide.