API17

JModelForm::loadForm

From Joomla! Documentation

The "API17" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Joomla 11.1 JModelForm::loadForm[edit]

Description[edit]

Method to get a form object.


protected function loadForm (
        $name
        $source=null
        $options=array
        $clear=false
        $xpath=false
)
Parameter Type Default Description
$name string The name of the form.
$source string null The form source. Can be XML string if file flag is set to false.
$options array array() Optional array of options for the form creation.
$clear boolean false Optional argument to force load a new form.
$xpath string false An optional xpath to search for the fields.
  • Returns mixed object on success, False on error.
  • Defined on line 122 of libraries/joomla/application/component/modelform.php

See also[edit]


User contributed notes[edit]

Code Examples[edit]