function displayAction() { $this->setActiveMenu('setup'); $this->p = filterId($this->_request->getParam('page')); if ($this->p === 'ajax') { return $this->ajaxAction(); } $this->initSetupForms(); $this->form = $this->getForm($this->p, false); $this->form->prepare(); if ($this->form->isSubmitted()) { $this->form->setDataSources(array($this->_request)); if ($this->form->validate() && $this->form->saveConfig()) { $this->redirectHtml($this->getUrl(null, $this->p), ___('Config values updated...')); return; } } else { $this->form->setDataSources(array(new HTML_QuickForm2_DataSource_Array($this->getConfigValues()), new HTML_QuickForm2_DataSource_Array($this->form->getDefaults()))); } $this->view->assign('p', $this->p); $this->view->assign('pages', $this->renderPages()); $this->form->replaceDotInNames(); $this->view->assign('pageObj', $this->form); $this->view->assign('form', $this->form); $this->view->display('admin/setup.phtml'); }