mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
30 lines
573 B
PHP
30 lines
573 B
PHP
<?php
|
|
require_once('Controller.php');
|
|
require_once('Models/GameDemosModel.php');
|
|
|
|
class DemosPage extends Controller {
|
|
private $_template;
|
|
|
|
/* Constructor. */
|
|
public function __construct() {
|
|
parent::__construct();
|
|
$this->_template = 'game_demos.tpl';
|
|
}
|
|
|
|
/* Display the index page. */
|
|
public function index() {
|
|
$demos = GameDemosModel::getAllGroupsAndDemos();
|
|
|
|
$this->addCSSFiles('chart.css');
|
|
return $this->renderPage(
|
|
array(
|
|
'title' => 'Game Demos',
|
|
'content_title' => 'Game Demos',
|
|
'demos' => $demos,
|
|
),
|
|
$this->_template
|
|
);
|
|
}
|
|
}
|
|
?>
|