Files
scummvm-web/include/Pages/LinksPage.php
T
Eugene Sandulenko d429c48de0 Website rewrite from Fredrik Wendel
svn path=/web/trunk/; revision=40814
2009-05-23 18:45:30 +00:00

30 lines
550 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 = 'links.tpl';
}
/* Display the index page. */
public function index() {
$links = LinksModel::getAllGroupsAndLinks();
$this->addCSSFiles('links.css');
return $this->renderPage(
array(
'title' => 'Links',
'content_title' => 'Links',
'links' => $links,
),
$this->_template
);
}
}
?>