20240412#1

This commit is contained in:
User
2024-04-12 03:18:04 +03:00
parent 035783e264
commit c2d2ad9177
20 changed files with 292 additions and 50 deletions

View File

@@ -13,12 +13,12 @@ class IndexController extends AbstractController {
*/
public function index() : bool|ResponseInterface {
try {
$this->addHeader("App-Mode", "Dev");
//$this->addHeader("App-Mode", "Dev");
$this->template()->setValue("title", "Главная");
$this->template()->setSubtemple("main", "main/index.tpl", [
$this->template()->setSubtemplate("main", "/main/index.tpl", [
"date" => (new \DateTime())->format('Y-m-d H:i:s')
]);
return $this->renderResponse();
return $this->render();
}
catch(ServiceException $exception){}
return true;