rosehill/libraries/Blossom/Classes/Controller.php

21 lines
449 B
PHP

<?php
/**
* @copyright 2012-2013 City of Bloomington, Indiana
* @license http://www.gnu.org/licenses/agpl.txt GNU/AGPL, see LICENSE.txt
* @author Cliff Ingham <inghamn@bloomington.in.gov>
*/
namespace Blossom\Classes;
abstract class Controller
{
protected $template;
abstract public function index();
public function __construct(Template &$template)
{
$this->template = $template;
$this->template->controller = get_class($this);
}
}