Ejemplo n.º 1
0
 public function getForm($data = array(), $loadData = true, $control = 'jform')
 {
     JKSForm::addFormPath(JPATH_COMPONENT . '/models/forms');
     JKSForm::addFieldPath(JPATH_COMPONENT . '/models/fields');
     if (!$this->form) {
         $this->form = $this->getName();
     }
     $form = JKSForm::getInstance($this->ext_name_com . '.' . $this->form, $this->form, array('control' => $control, 'load_data' => $loadData));
     if (empty($form)) {
         return false;
     }
     return $form;
 }
Ejemplo n.º 2
0
 function getForm()
 {
     JKSForm::addFormPath(JPATH_ROOT . '/plugins/kmexportimport/export_ym/assets/forms');
     JKSForm::addFieldPath(JPATH_ROOT . '/administrator/components/com_ksenmart/models/fields');
     $form = JKSForm::getInstance('com_ksenmart.exportym', 'exportym', array('control' => 'jform', 'load_data' => true));
     if (empty($form)) {
         return false;
     }
     return $form;
 }