コード例 #1
0
ファイル: Validator.php プロジェクト: marvin255/serviform
 protected function getTestForm()
 {
     $form = new \serviform\fields\Form();
     $form->setElement('input1', new \serviform\fields\Input());
     $form->setElement('input2', new \serviform\fields\Input());
     return $form;
 }
コード例 #2
0
ファイル: FormTest.php プロジェクト: marvin255/serviform
 protected function getField()
 {
     $field = new \serviform\fields\Form();
     $field->config(['elements' => ['child' => ['type' => 'input', 'attributes' => ['class' => 'child']], 'child2' => ['type' => 'input', 'attributes' => ['class' => 'child']]]]);
     return $field;
 }