20240412#2
This commit is contained in:
@@ -1,12 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace App\Main\Controllers;
|
namespace App\Main\Controllers;
|
||||||
use App\Common\Controllers\AbstractController;
|
use App\Common\Controllers\AbstractPageController;
|
||||||
use App\Common\Services\ServiceException;
|
|
||||||
use Psr\Http\Message\ResponseInterface;
|
use Psr\Http\Message\ResponseInterface;
|
||||||
|
|
||||||
|
|
||||||
class IndexController extends AbstractController {
|
class IndexController extends AbstractPageController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool|ResponseInterface
|
* @return bool|ResponseInterface
|
||||||
@@ -18,10 +17,8 @@ class IndexController extends AbstractController {
|
|||||||
$this->template()->setSubtemplate("main", "/main/index.tpl", [
|
$this->template()->setSubtemplate("main", "/main/index.tpl", [
|
||||||
"date" => (new \DateTime())->format('Y-m-d H:i:s')
|
"date" => (new \DateTime())->format('Y-m-d H:i:s')
|
||||||
]);
|
]);
|
||||||
|
}
|
||||||
|
catch(\Throwable $e){$error = $this->checkError($e);}
|
||||||
return $this->render();
|
return $this->render();
|
||||||
}
|
}
|
||||||
catch(ServiceException $exception){}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user