Files
scummvm-web/include/Pages/FAQPage.php
T

36 lines
786 B
PHP

<?php
namespace ScummVM\Pages;
use ScummVM\Controller;
use ScummVM\Models\FAQModel;
class FAQPage extends Controller
{
/* Constructor. */
public function __construct()
{
parent::__construct();
$this->template = 'pages/faq.tpl';
}
/* Display the index page. */
public function index()
{
$contents = FAQModel::getFAQ();
$modified = FAQModel::getLastUpdated();
global $Smarty;
return $this->renderPage(
array(
'title' => $Smarty->getConfigVars('faqTitle'),
'content_title' => $Smarty->getConfigVars('faqContentTitle'),
'contents' => $contents,
'modified' => $modified,
),
$this->template
);
}
}