mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
This makes debugging and using other web servers much easier, and scales better when adding functionality and pages
32 lines
712 B
PHP
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,
|
|
)
|
|
);
|
|
}
|
|
}
|