public function actionSettings() { $form = new InstallSettingsForm(); $memcacheServiceHelper = new MemcacheServiceHelper(); if (!$memcacheServiceHelper->runCheckAndGetIfSuccessful()) { $form->setMemcacheIsNotAvailable(); } $form->hostInfo = InstallUtil::getDefaultHostInfo(); $form->scriptUrl = InstallUtil::getDefaultScriptUrl($this->getRoute()); if (isset($_POST['ajax']) && $_POST['ajax'] === 'install-form') { $this->actionValidateSettings($form); } else { if (isset($_POST['InstallSettingsForm'])) { $form->setAttributes($_POST['InstallSettingsForm']); //in case if additionalSystemCheck it will render its own screen $this->additionalSystemCheck($form); Yii::app()->end(0, false); } } $settingsView = new InstallSettingsView($this->getId(), $this->getModule()->getId(), $form); $view = new InstallPageView($settingsView); echo $view->render(); }