initGeneral() public method

Initialize General sub form
public initGeneral ( ) : Config
return Config
コード例 #1
0
ファイル: ConfigTest.php プロジェクト: gotcms/gotcms
 /**
  * Test
  *
  * @return void
  */
 public function testInitGeneral()
 {
     $this->assertInstanceOf('GcConfig\\Form\\Config', $this->object->initGeneral());
 }
コード例 #2
0
ファイル: CmsController.php プロジェクト: gotcms/gotcms
 /**
  * Generate general configuration form
  *
  * @return void
  */
 public function editGeneralAction()
 {
     $this->form = new configForm();
     $this->form->initGeneral();
     return $this->forward()->dispatch('CmsController', array('action' => 'edit'));
 }