item = $this->get('Item'); if (!$this->item) { throw new \RuntimeException(Text::_('COM_TESTQUESTIONS_RESULT_NOT_FOUND')); } ToolbarHelper::title(Text::_('COM_TESTQUESTIONS_RESULT_PREVIEW')); ToolbarHelper::save('result.save', 'COM_TESTQUESTIONS_RESULT_SAVE'); ToolbarHelper::custom('result.save2close', 'save', 'save', 'COM_TESTQUESTIONS_RESULT_SAVE_AND_CLOSE', false); ToolbarHelper::link('index.php?option=com_testquestions&view=results', 'COM_TESTQUESTIONS_RESULTS', 'back'); return parent::display($tpl); } }