Ejemplo n.º 1
0
 /**
  * Read custom params from XML file and render them
  **/
 public function _buildFieldParams($type, $params = '')
 {
     $xmlPath = JPATH_ROOT . '/components/com_community/libraries/fields/' . $type . '.xml';
     $html = '';
     if (JFile::exists($xmlPath)) {
         $params = new CParameter($params, $xmlPath);
         $html = $params->render_customform();
     }
     return $html;
 }