redirect('index.php?option=com_config&view=component&component=com_k2&path=&tmpl=component'); } else { JRequest::setVar('tmpl', 'component'); parent::display(); } } function save() { $mainframe = JFactory::getApplication(); JRequest::checkToken() or jexit('Invalid Token'); $model = $this->getModel('settings'); $model->save(); $mainframe->redirect('index.php?option=com_k2&view=settings'); } }