CodeIgniter Forums
Where do I upload Admin created forms? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Best Practices (https://forum.codeigniter.com/forum-12.html)
+--- Thread: Where do I upload Admin created forms? (/thread-74973.html)



Where do I upload Admin created forms? - prikkles - 12-03-2019

On the admin panel, my admin users copy <form> code into a <text> input box (same for the action page) that my Admin Panel then writes to two separate .php files (form page and action page) and saves into a date-defined directory in my views folder. The directory path of the files are then saved in a database. 

The website then loads the forms into a template and displays them through index.php as usual. Users can then access and use them on the main site. 

Is storing them in the views best practice? Or best option? Should these be stored in the public or other directory instead?