Add frontend test scoring

This commit is contained in:
Wojtek
2026-10-15 12:22:11 +02:00
parent 270143ad6a
commit 9742c273de
8 changed files with 113 additions and 9 deletions
@@ -5,8 +5,18 @@ namespace Komponent\Component\Testquestions\Site\Controller;
defined('_JEXEC') or die;
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\CMS\Session\Session;
class DisplayController extends BaseController
{
protected $default_view = 'questions';
public function check()
{
if (!Session::checkToken()) {
throw new \RuntimeException('Invalid token', 403);
}
return $this->display();
}
}