mirror of
https://github.com/scummvm/scummvm-web.git
synced 2026-06-20 05:45:49 +00:00
34 lines
765 B
PHP
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
|
|
);
|
|
}
|
|
}
|