Does CodeIgniter have to load view in the final step?
Posted
by Peter
on Stack Overflow
See other posts from Stack Overflow
or by Peter
Published on 2010-05-23T18:40:20Z
Indexed on
2010/05/23
18:50 UTC
Read the original article
Hit count: 338
I have a function
function do_something() {
// process
$this->load->view('some_view', $data);
exec('mv /path/to/folder1/*.mp3 /path/to/folder2/');
}
My intention is to move files after outputting the view. But apparently it is done before rendering the view. My question is, does $this->load->view();
have to be the final step in a function?
I did a little research, and seems like my question is similar to this topic. Correct?
© Stack Overflow or respective owner