示例#1
0
 public function handle_setParametrs($post)
 {
     $this->setConfPatch();
     if (!ParametersData::writeconfig($post, $this->input[$this->type], $this->dir . $this->file, $this->type)) {
         SessionService::getInstance()->clear('config_' . $this->type);
         $this->msg = "Error can't save config file.";
     } else {
         SessionService::getInstance()->set('config_' . $this->type, 'true');
         $this->msg = "Parametrization succeed.";
     }
 }