Files
scummvm-web/include/Pages/DocumentationPage.php
T
Matan Bareket 95aaec5f3e WEB: Use AltoRouter instead of apache rewrites
This makes debugging and using other web servers much easier, and scales better when adding functionality and pages
2019-04-24 20:57:03 -04:00

32 lines
712 B
PHP

<?php
namespace ScummVM\Pages;
use ScummVM\Controller;
use ScummVM\Models\DocumentationModel;
class DocumentationPage extends Controller
{
/* Constructor. */
public function __construct()
{
parent::__construct();
$this->template = 'pages/documentation.tpl';
}
/* Display the index page. */
public function index()
{
$documents = DocumentationModel::getAllDocuments();
return $this->renderPage(
array(
'title' => $this->getConfigVars('documentationTitle'),
'content_title' => $this->getConfigVars('documentationContentTitle'),
'documents' => $documents,
)
);
}
}