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

30 lines
606 B
PHP

<?php
require_once('Controller.php');
require_once('Models/LinksModel.php');
class LinksPage extends Controller {
private $_template;
/* Constructor. */
public function __construct() {
parent::__construct();
$this->_template = 'pages/links.tpl';
}
/* Display the index page. */
public function index() {
$links = LinksModel::getAllGroupsAndLinks();
global $Smarty;
return $this->renderPage(
array(
'title' => $Smarty->getConfigVars('linksTitle'),
'content_title' => $Smarty->getConfigVars('linksContentTitle'),
'links' => $links,
),
$this->_template
);
}
}
?>