Files
scummvm-web/include/Pages/DownloadsPage.php
T
Eugene Sandulenko d429c48de0 Website rewrite from Fredrik Wendel
svn path=/web/trunk/; revision=40814
2009-05-23 18:45:30 +00:00

34 lines
747 B
PHP

<?php
require_once('Controller.php');
require_once('Models/DownloadsModel.php');
class DownloadsPage extends Controller {
private $_template;
/* Constructor. */
public function __construct() {
parent::__construct();
$this->_template = 'downloads.tpl';
}
/* Display the index page. */
public function index() {
$downloads = DownloadsModel::getAllDownloads();
$sections = DownloadsModel::getAllSections();
$this->addCSSFiles('downloads.css');
return $this->renderPage(
array(
'title' => 'Downloads',
'content_title' => 'Download ScummVM',
'downloads' => $downloads,
'sections' => $sections,
'release_tools' => RELEASE_TOOLS,
'release_debian' => RELEASE_DEBIAN,
),
$this->_template
);
}
}
?>