FuelPHP Bin
Sign in
Url:
Fork
$input = \Input::get(); \Config::load('application', 'app'); foreach ($input as $key => $value) { $key = preg_replace('/___/', '.', $key); \Config::set('app'.$key, $value); } if(\Config::save('application', 'app')) { return $this->response(array( "success" => true )); } else { return $this->response(array( "success" => false, "message" => "Couldn't save config file" )); }