Init
This commit is contained in:
commit
67221e0d93
41 files changed
+516
No files matched your search
Whitespace-only changes.
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Whitespace-only changes.
Reference in new issue
Block a user