/** * Default action */ public function index() { $form = new SettingsForm($this); if (!empty($_POST) && $form->isValid($_POST)) { $data = $form->getValues(); OW::getConfig()->saveConfig('blogs', 'results_per_page', $data['results_per_page']); } $this->addForm($form); }
/** * Default action */ public function index() { $form = new SettingsForm($this); if (!empty($_POST) && $form->isValid($_POST)) { $data = $form->getValues(); OW::getConfig()->saveConfig('links', 'results_per_page', $data['results_per_page']); OW::getConfig()->saveConfig('links', 'result_mode', $data['mode']); OW::getFeedback()->info(OW::getLanguage()->text('links', 'updated')); $this->redirect(OW::getRouter()->getBaseUrl() . OW::getRouter()->getUri()); } $this->addForm($form); }