getModel('user'); $model->save(); } function apply() { $this->save(); } function cancel() { $mainframe = JFactory::getApplication(); $mainframe->redirect('index.php?option=com_k2&view=users'); } function report() { $model = K2Model::getInstance('User', 'K2Model'); $model->setState('id', JRequest::getInt('id')); $model->reportSpammer(); $this->setRedirect('index.php?option=com_k2&view=users'); } }