/** * @param Request $request * @return string */ public function render(Request $request) { $t = $this->t; $path = $request->path(); if ($path === '/') { $path = 'login/index'; } ///** @noinspection PhpUndefinedMethodInspection */ $controllerName = explode("/", $path)[0]; return $t->doctype($t->html(a::lang('pl'), [$this->head($t, $controllerName), $this->body($t, $controllerName)])); }