config->getSrcDir().'/templates/'.$template.'.tpl.php'; if (file_exists($fileName)) { ob_start(); require $fileName; ob_end_flush(); } } /** * @param string $title * * @return View */ public function setTitle(string $title) { /* @var \App $app */ global $app; $this->title = $title.' — '.$app->config->getSiteName(); return $this; } }