[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/layouts/joomla/form/field/subform/ -> default.php (source)

   1  <?php
   2  
   3  /**
   4   * @package     Joomla.Site
   5   * @subpackage  Layout
   6   *
   7   * @copyright   (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
   8   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   9   */
  10  
  11  defined('_JEXEC') or die;
  12  
  13  use Joomla\CMS\Form\Form;
  14  
  15  extract($displayData);
  16  
  17  /**
  18   * Layout variables
  19   * -----------------
  20   * @var   Form    $tmpl             The Empty form for template
  21   * @var   array   $forms            Array of JForm instances for render the rows
  22   * @var   bool    $multiple         The multiple state for the form field
  23   * @var   int     $min              Count of minimum repeating in multiple mode
  24   * @var   int     $max              Count of maximum repeating in multiple mode
  25   * @var   string  $name             Name of the input field.
  26   * @var   string  $fieldname        The field name
  27   * @var   string  $fieldId          The field ID
  28   * @var   string  $control          The forms control
  29   * @var   string  $label            The field label
  30   * @var   string  $description      The field description
  31   * @var   array   $buttons          Array of the buttons that will be rendered
  32   * @var   bool    $groupByFieldset  Whether group the subform fields by it`s fieldset
  33   */
  34  $form = $forms[0];
  35  ?>
  36  
  37  <div class="subform-wrapper">
  38  <?php foreach ($form->getGroup('') as $field) : ?>
  39      <?php echo $field->renderField(); ?>
  40  <?php endforeach; ?>
  41  </div>


Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer