pics/controllers/HTMLController.php

32 lines
711 B
PHP
Raw Permalink Normal View History

<?php
/*****************************************************************************
* HTMLController.php
* Contains the key HTML controller
*
* Kabuki CMS (C) 2013-2015, Aaron van Geffen
*****************************************************************************/
/**
* The abstract class that allows easy creation of html pages.
*/
abstract class HTMLController
{
protected $page;
public function __construct($title)
{
header('Content-Type: text/html; charset=utf-8');
$this->page = new MainTemplate($title);
if (Registry::get('user')->isAdmin())
{
$this->page->appendStylesheet(BASEURL . '/css/admin.css');
}
}
public function showContent()
{
$this->page->html_main();
}
}