FOFModel::getForm
A method for getting the form from the model.
Signature
public function getForm(array
$data,
[boolean
$loadData = true,
[boolean
$source = null]] )
Parameters
-
$data
- Data for the form.
-
$loadData
- True if the form is to load its own data (default case), false if not.
-
$source
- The name of the form. If not set we'll try the form_name state variable or fall back to default.
Returns
- mixed
- A FOFForm object on success, false on failure