mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-05-21 05:40:47 +00:00
4471b291a1
This is a first step towards moving to a dependency injection model.
33 lines
805 B
PHP
33 lines
805 B
PHP
<?php
|
|
namespace ScummVM\Pages;
|
|
|
|
use ScummVM\Controller;
|
|
use ScummVM\Models\FAQModel;
|
|
|
|
class FAQPage extends Controller
|
|
{
|
|
private $faqModel;
|
|
/* Constructor. */
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->template = 'pages/faq.tpl';
|
|
$this->faqModel = new FAQModel();
|
|
}
|
|
|
|
/* Display the index page. */
|
|
public function index()
|
|
{
|
|
$contents = $this->faqModel->getFAQ();
|
|
$modified = $this->faqModel->getLastUpdated();
|
|
return $this->renderPage(
|
|
array(
|
|
'title' => $this->getConfigVars('faqTitle'),
|
|
'content_title' => $this->getConfigVars('faqContentTitle'),
|
|
'contents' => $contents,
|
|
'modified' => $modified,
|
|
)
|
|
);
|
|
}
|
|
}
|