mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
34 lines
810 B
PHP
34 lines
810 B
PHP
<?php
|
|
namespace ScummVM\Web\Pages;
|
|
|
|
require_once('Controller.php');
|
|
require_once('Models/SubprojectsModel.php');
|
|
|
|
class SubprojectsPage extends Controller
|
|
{
|
|
private $_template;
|
|
|
|
/* Constructor. */
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->_template = 'pages/subprojects.tpl';
|
|
}
|
|
|
|
/* Display the index page. */
|
|
public function index()
|
|
{
|
|
$subprojects = SubprojectsModel::getAllSubprojects();
|
|
global $Smarty;
|
|
|
|
return $this->renderPage(
|
|
array(
|
|
'title' => $Smarty->getConfigVars('subprojectsTitle'),
|
|
'content_title' => $Smarty->getConfigVars('subprojectsContentTitle'),
|
|
'subprojects' => $subprojects,
|
|
),
|
|
$this->_template
|
|
);
|
|
}
|
|
}
|