App Installer |
[eluser]getSurreal[/eluser]
Is there any existing installer that will on first use of a new install of my app update the system/application/config/config.php file with user defined settings? For example the url will need to be updated $config['base_url'] = "http://{user-customized}/";
[eluser]getSurreal[/eluser]
This works instead of manually editing it. $config['base_url'] = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on") ? "https" : "http"); $config['base_url'] .= "://".$_SERVER['HTTP_HOST']; $config['base_url'] .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
[eluser]Collb[/eluser]
See this https://github.com/collb/codeigniter-ins...all/master https://github.com/collb/codeigniter-installer |
Welcome Guest, Not a member yet? Register Sign In |