mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
36 lines
802 B
PHP
36 lines
802 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()
|
|
{
|
|
$document = $_GET['d'];
|
|
global $Smarty;
|
|
|
|
$documents = DocumentationModel::getAllDocuments();
|
|
|
|
return $this->renderPage(
|
|
array(
|
|
'title' => $Smarty->getConfigVars('documentationTitle'),
|
|
'content_title' => $Smarty->getConfigVars('documentationContentTitle'),
|
|
'documents' => $documents,
|
|
),
|
|
$this->template
|
|
);
|
|
}
|
|
}
|