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

34 lines
765 B
PHP

<?php
namespace ScummVM\Pages;
use ScummVM\Controller;
use ScummVM\Models\SubprojectsModel;
class SubprojectsPage extends Controller
{
/* 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
);
}
}