CodeIgniter has it's own Form helper. There are a couple reasons why FUEL uses the Form class instead of the CI Form helper:
The Form class is used in combination with the Form_builder and Validator classes and so code control is important
The integration with other classes made it crucial to be bundled up as an object that could be shared
Unlike CI's helper, this Form class will automatically insert an ID attribute for most of the fields. This can be overwritten with id="[custam_value]" passed to any of the methods below that have an $attrs parameter.
Configuring Form Information
There are several public properties you can use to configure the Form Class:
attrs - The form tags attributes. Default is method="post" action=""
validator - The validator object to be used during the validation process
focus_highlight_cssclass - The focus css class. Default is field_highlight
error_highlight_cssclass - The error highlight class. Default is error_highlight
Function Reference
$this->form->open([attrs], [validator])
Will create a form open tag.
The $attrs parameter will be the attributes of the form (can be an array also).
The $validator parameter is a Validator Class object (optional).
$validator = new Validator();
echo $this->form->open('id="my_form"', $validator);
// will echo the following
<form action="" method="post" id="my_form">
$this->form->open_multipart([attrs], [validator])
Will create a form open tag that has multipart attribute.
The $attrs parameter will be the attributes of the form (can be an array also).
The $validator parameter is a Validator Class object (optional).
$validator = new Validator();
echo $this->form->open_multipart('id="my_form"', $validator);
// will echo the following
<form action="" method="post" id="my_form">
Will create a form open tag that has multipart attribute.
The $html_before_form parameter is HTML to insert before closing the tag (optional).
The $add_csrf_field parameter is whether to include a hidden field of the csrf token if csrf is turned on.
echo $this->form->close('');
// will echo the following
<</form>
$this->form->fieldset_open('legend', ['attrs'])
Will create a fieldset for the form.
The $legend parameter is the name to use in the legend.
The $attrs parameter is optional HTML attributes to use on the legend (optional).
echo $this->form->fieldset_open('MY Form Legend', 'id="my_legend"');
// will echo the following