Init
This commit is contained in:
0
src/Main/Components/.gitkeep
Normal file
0
src/Main/Components/.gitkeep
Normal file
25
src/Main/Controllers/IndexController.php
Normal file
25
src/Main/Controllers/IndexController.php
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
0
src/Main/Domain/.gitkeep
Normal file
0
src/Main/Domain/.gitkeep
Normal file
0
src/Main/Repository/DTO/.gitkeep
Normal file
0
src/Main/Repository/DTO/.gitkeep
Normal file
0
src/Main/Repository/Interface/.gitkeep
Normal file
0
src/Main/Repository/Interface/.gitkeep
Normal file
0
src/Main/Repository/Mysql/.gitkeep
Normal file
0
src/Main/Repository/Mysql/.gitkeep
Normal file
0
src/Main/Services/.gitkeep
Normal file
0
src/Main/Services/.gitkeep
Normal file
Reference in New Issue
Block a user