This commit is contained in:
User
2023-05-29 03:04:33 +03:00
commit 67221e0d93
41 changed files with 516 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?php
namespace App\Main\Controllers;
use App\Common\Controllers\AbstractPageController;
use App\Common\Services\ServiceException;
use Psr\Http\Message\ResponseInterface;
class IndexController extends AbstractPageController {
/**
* @return bool|ResponseInterface
*/
public function index() : bool|ResponseInterface {
try {
$this->addHeader("App-Mode", "Dev");
$this->template()->setValue("title", "Главная");
$this->template()->setSubtemple("main", "main/index.tpl", [
]);
}
catch(ServiceException $exception){}
return true;
}
}