public form ( string $name, string $source, string $viewName, array $options = [], boolean $replace = true, boolean $xpath = false ) : |
||
$name | string | The name of the form. |
$source | string | The form source filename without path and .xml extension e.g. "form.default" OR raw XML data |
$viewName | string | The name of the view you're getting the form for. |
$options | array | Options to the Form object |
$replace | boolean | Should form fields be replaced if a field already exists with the same group/name? |
$xpath | boolean | An optional xpath to search for the fields. |
Результат | The loaded form or null if the form filename doesn't exist |