Swat/SwatForm.php
public function addWithField(SwatWidget $widget, $title)
    {
        $field = new SwatFormField();
        $field->add($widget);
        $field->title = $title;
        $this->add($field);
    }
public function addWithField(SwatWidget $widget, $title)
    {
        $field = new SwatFormField();
        $field->add($widget);
        $field->title = $title;
        $this->add($field);
    }
public function addWithField ( SwatWidget $ widget , $ title ) { $ field = new SwatFormField ( ) ; $ field -> add ( $ widget ) ; $ field -> title = $ title ; $ this -> add ( $ field ) ; }
Adds a widget within a new SwatFormField

This is a convenience method that does the following:
- creates a new SwatFormField,
- adds the widget as a child of the form field,
- and then adds the SwatFormField to this form.

@param SwatWidget $widget a reference to a widget to add.
@param string $title the visible title of the form field.
Adds a widget within a new SwatFormField