27 lines
749 B
PHP
27 lines
749 B
PHP
<?php
|
|
|
|
namespace Komponent\Component\Testquestions\Administrator\View\Subject;
|
|
|
|
defined('_JEXEC') or die;
|
|
|
|
use Joomla\CMS\Language\Text;
|
|
use Joomla\CMS\MVC\View\HtmlView as BaseHtmlView;
|
|
use Joomla\CMS\Toolbar\ToolbarHelper;
|
|
|
|
class HtmlView extends BaseHtmlView
|
|
{
|
|
protected $form;
|
|
protected $item;
|
|
|
|
public function display($tpl = null)
|
|
{
|
|
$this->form = $this->get('Form');
|
|
$this->item = $this->get('Item');
|
|
ToolbarHelper::title($this->item->id ? Text::_('COM_TESTQUESTIONS_EDIT_SUBJECT') : Text::_('COM_TESTQUESTIONS_NEW_SUBJECT'));
|
|
ToolbarHelper::save('subject.save', 'JTOOLBAR_SAVE');
|
|
ToolbarHelper::cancel('subject.cancel', 'JTOOLBAR_CANCEL');
|
|
|
|
return parent::display($tpl);
|
|
}
|
|
}
|