Codeigniter, open and edit view file on webpage
===

I'm trying to create a basic CMS in codeigniter, and would like to be able to open view files inside the backend of the CMS, i.e on a webpage. The advantage of this is being able to upload views directly from a code editor/ftp client, but be able to modify them using the CMS if this option isn't availble. I know i could do it using a database, but being able to FTP views directly is required.

I've tried Googling various things, but the keywords seem to pull up completely different results.

So it's basically opening the file, putting it's contents in a form/textarea box, then on saving it saves directly to the file again, but i can't find any examples!

Thanks in advance!

C.