\Config::load(\Fuel::$env.'/config', 'env_config', true);
\Config::set('env_config.security.token_salt',\Security::generate_token());
\Config::load(\Fuel::$env.'/config', 'env_config');
//get environment specific database config
\Config::load(\Fuel::$env.'/db', 'database', true);
//set the database information
\Config::set('database.default.connection.dsn', 'mysql:host='.\Input::post('db_host').';dbname='.\Input::post('db_name'));
\Config::set('database.default.connection.username', \Input::post('db_username'));
\Config::set('database.default.connection.password', \Input::post('db_password'));
// save the database config
\Config::save(\Fuel::$env.'/db', 'database');
It looks like you're new here. If you want to get involved, click one of these buttons!