Match set frontend to exam view

This commit is contained in:
Wojtek
2026-10-15 18:05:11 +02:00
parent b2ea519ff5
commit 54c4c56469
7 changed files with 37 additions and 2 deletions
@@ -11,12 +11,18 @@ class HtmlView extends BaseHtmlView
{
protected $set;
protected $items;
protected $sets;
protected $results;
public function display($tpl = null)
{
$this->getDocument()->getWebAssetManager()->registerAndUseStyle(
'com_testquestions.exam',
'media/com_testquestions/egzamin.css'
);
$this->set = $this->get('Set');
$this->items = $this->get('Items');
$this->sets = $this->get('Sets');
$this->results = $this->buildResults($this->items);
return parent::display($tpl);