$fieldset = Fieldset::factory('my_form', array( 'auto_id' => true, )); $fieldset->add('name', 'My label'); echo $fieldset;
$form->add('example_text', 'Title', array( 'type' => 'text', 'value' => empty($data->example_text) ? '' : $data->example_text, 'id' => 'example-text', 'size' => 100, ), array( array('required'), array('trim'), array('max_length', 100), array('min_length', 3) ) );
It looks like you're new here. If you want to get involved, click one of these buttons!