상속: extends Gc\Form\AbstractForm
예제 #1
0
 /**
  * Configuration
  *
  * @return array
  */
 public function configurationAction()
 {
     $this->checkInstall(5);
     $this->installForm->configuration();
     if ($this->getRequest()->isPost()) {
         $data = $this->getRequest()->getPost()->toArray();
         $this->installForm->setData($data);
         if ($this->installForm->isValid()) {
             $values = $this->installForm->getInputFilter()->getValues();
             $session = $this->getSession();
             $install = $session['install'];
             $install['configuration'] = $values;
             $session['install'] = $install;
             return $this->redirect()->toRoute('install/complete');
         }
     }
     $this->layout()->setVariables(array('currentRoute' => $this->getRouteMatch()->getMatchedRouteName()));
     return array('form' => $this->installForm);
 }
예제 #2
0
 /**
  * Test
  *
  * @return void
  */
 public function testConfiguration()
 {
     $this->assertNull($this->object->configuration());
 }