mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-05-21 05:40:47 +00:00
34 lines
787 B
PHP
34 lines
787 B
PHP
<?php
|
|
namespace ScummVM\Pages;
|
|
|
|
use ScummVM\Controller;
|
|
use ScummVM\Models\LinksModel;
|
|
|
|
class LinksPage extends Controller
|
|
{
|
|
|
|
private LinksModel $linksModel;
|
|
|
|
/* Constructor. */
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->template = 'pages/links.tpl';
|
|
$this->linksModel = new LinksModel();
|
|
}
|
|
|
|
/* Display the index page. */
|
|
public function index(): void
|
|
{
|
|
$links = $this->linksModel->getAllGroupsAndLinks();
|
|
$this->renderPage(
|
|
array(
|
|
'title' => $this->getConfigVars('linksTitle'),
|
|
// TODO: add a description
|
|
'content_title' => $this->getConfigVars('linksContentTitle'),
|
|
'links' => $links,
|
|
)
|
|
);
|
|
}
|
|
}
|