| Current Path : /var/www/html/components/com_osmembership/view/mplan/tmpl/ |
| Current File : /var/www/html/components/com_osmembership/view/mplan/tmpl/default_renew_options.php |
<?php
/**
* @package Joomla
* @subpackage Membership Pro
* @author Tuan Pham Ngoc
* @copyright Copyright (C) 2012 - 2026 Ossolution Team
* @license GNU/GPL, see LICENSE.php
*/
defined('_JEXEC') or die;
use Joomla\CMS\Form\Form;
$form = Form::getInstance('renew_options', JPATH_ADMINISTRATOR . '/components/com_osmembership/view/plan/forms/renew_options.xml');
$formData['renew_options'] = [];
foreach ($this->prices as $renewOption)
{
$formData['renew_options'][] = [
'id' => $renewOption->id,
'renew_option_length' => $renewOption->renew_option_length,
'renew_option_length_unit' => $renewOption->renew_option_length_unit,
'price' => $renewOption->price,
];
}
$form->bind($formData);
foreach ($form->getFieldset() as $field)
{
echo $field->input;
}