Welcome Guest, Not a member yet? Register   Sign In
Configuration DB like Prestashop or wordpress
#1

Hi,
I have bulid a web application with CodeIgniter, i want the configuration of DB like Prestashop or Wordpress by the navigator in the first use of the application.
It is possible to do that, if yes, plz give me a tuto for build this.
Thanks a lot.
Reply
#2

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
Reply




Theme © iAndrew 2016 - Forum software by © MyBB