I just try the build() function of the Fieldset class. It seems that the class render the field using table layout (<table>). How can I change how the Fieldset render the field?
Next question is, how to set the validation in Fieldset class?
Thanks
The form layout used by the fieldset class is in config/form.php. Copy it from core to app and modify it to your liking.
You add validation rules when you add the fields. For models, the rules are defined in the $_properties array.
You can access the validation object associated with the fieldset via $yourfieldsetobject->validation().