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

34 lines
762 B
PHP

<?php
require_once('Controller.php');
require_once('Models/GamesModel.php');
class GamesPage extends Controller {
private $_template;
/* Constructor. */
public function __construct() {
parent::__construct();
$this->_template = 'pages/games.tpl';
}
/* Display the index page. */
public function index() {
$downloads = GamesModel::getAllDownloads();
$sections = GamesModel::getAllSections();
global $Smarty;
return $this->renderPage(
array(
'title' => $Smarty->getConfigVars('gamesTitle'),
'content_title' => $Smarty->getConfigVars('gamesContentTitle'),
'downloads' => $downloads,
'sections' => $sections,
'release_tools' => RELEASE_TOOLS,
'release_debian' => RELEASE_DEBIAN,
),
$this->_template
);
}
}
?>