getModel('extraFields'); $view = $this->getView('extrafieldsgroups', 'html'); $view->setModel($model, true); parent::display(); } function add() { $mainframe = JFactory::getApplication(); $mainframe->redirect('index.php?option=com_k2&view=extrafieldsgroup'); } function edit() { $mainframe = JFactory::getApplication(); $cid = JRequest::getVar('cid'); $mainframe->redirect('index.php?option=com_k2&view=extrafieldsgroup&cid='.$cid[0]); } function remove() { JRequest::checkToken() or jexit('Invalid Token'); $model = $this->getModel('extraFields'); $model->removeGroups(); } }