/** * Edit a connection */ function edit() { $user =& JFactory::getUser(); $db =& JFactory::getDBO(); $row =& JTable::getInstance('Group', 'FabrikTable'); if ($this->_task == 'edit') { $cid = JRequest::getVar('cid', array(0), 'method', 'array'); $cid = array((int) $cid[0]); } else { $cid = array(0); } $row->load($cid[0]); if ($cid) { $row->checkout($user->get('id')); } $model =& $this->getModel('Group'); // Create the form $form = new JParameter('', JPATH_COMPONENT . DS . 'models' . DS . 'group.xml'); $form->loadINI($row->attribs); require_once JPATH_COMPONENT . DS . 'views' . DS . 'group.php'; FabrikViewGroup::edit($row, $form); }