getModel('extraField'); $model->save(); } function apply() { $this->save(); } function cancel() { $mainframe = JFactory::getApplication(); $mainframe->redirect('index.php?option=com_k2&view=extrafields'); } }