public function page() { $form = new ZeroWP\AdminForm\Create(); $form->openForm(); $this->form($form); $form->addSubmitButton(); $form->closeForm(); }
public function page() { $form = new ZeroWP\AdminForm\Create(); $form->openForm(); $form->addField('fieldid1', 'input', 19, array('label' => 'Input test', 'size' => 'small', 'type_attr' => 'number', 'text_before' => 'Mark is', 'text_after' => 'years old')); $form->addField('fieldid2', 'textarea', 'the value', array('label' => 'Textarea test')); $form->addSubmitButton(); $form->closeForm(); }