controller = $controller; $this->setMVCHelper($controller); } /** * @param $templateName * * @return false|string output is a safe file, so nothing to escape. */ protected function render($templateName) { ob_start(); include self::getPath() . '/Template/' . $templateName . '.php'; return ob_get_clean(); } /** * @return AbstractController */ public function getController() { return $this->controller; } public abstract function display(); }