How to save an outputted view as a file in CodeIgniter?
- by Peter
I have a view file result_view.xml that needs some variables to format an output. In controller I use $this->load->view('result_view.xml', $data); to finish the XML. Now, I also want to save this finalized XML as a file result.xml on my server. Is there a way to do that? Thanks.