Configuration DB like Prestashop or wordpress |
You could build a setup.php script which you could call directly for example http://www.example.com/setup.php
This would need to modify ../config/database.php and therefore need read and write access to that file. Then for security reasons in your MY_Controller construct you will need to check if setup.php is still present and nag them to remove it also for security reasons if somebody calls setup.php it should check that ../config/database.php isn't already setup and if it is bail! Don't let them change it again! Hope that helps a little. DMyers |
Messages In This Thread |
Configuration DB like Prestashop or wordpress - by pikamo - 11-15-2016, 01:37 AM
RE: Configuration DB like Prestashop or wordpress - by dmyers - 11-16-2016, 09:11 AM
|