Installation script for a CodeIgniter-based CMS |
[eluser]Unknown[/eluser]
As a way to teach myself CodeIgniter I'm creating a CMS (here: https://github.com/TCotton/CodeSharp). I'm looking at creating an installation script for the database. So here is my thought process so far: I've placed this in the central contoller file: Code: if (file_exists("application/views/admin/install_view.php")) { The idea being is that the user is automatically redirected to the install script, they fill in their user details and submit the form; the database is then created and the file destroyed. Then they'll find themselves back on the home page with a working CMS ready to go. However, the models are still making calls to tables which don't yet exist: Code: A Database Error Occurred Does anybody have any ideas how I can get around this? |
Welcome Guest, Not a member yet? Register Sign In |