generated from mirzaev/pot
	начало работы над сессиями и там дохуя чего ещё
This commit is contained in:
		| @@ -1,25 +1,25 @@ | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| namespace mirzaev\site\account\views; | ||||
|  | ||||
| use mirzaev\minimal\controller; | ||||
|  | ||||
| use Twig\Loader\FilesystemLoader; | ||||
| use Twig\Environment as view; | ||||
|  | ||||
| /** | ||||
|  * Менеджер представлений | ||||
|  * | ||||
|  * @package mirzaev\site\account\controllers | ||||
|  * @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy> | ||||
|  */ | ||||
| final class manager extends controller | ||||
| { | ||||
|     public function render(string $file, array $vars = []): ?string | ||||
|     { | ||||
|         // Генерация представления | ||||
|         return (new view(new FilesystemLoader(VIEWS)))->render($file, $vars); | ||||
|     } | ||||
| } | ||||
| <?php | ||||
|  | ||||
| declare(strict_types=1); | ||||
|  | ||||
| namespace mirzaev\site\account\views; | ||||
|  | ||||
| use mirzaev\minimal\controller; | ||||
|  | ||||
| use Twig\Loader\FilesystemLoader; | ||||
| use Twig\Environment as view; | ||||
|  | ||||
| /** | ||||
|  * Менеджер представлений | ||||
|  * | ||||
|  * @package mirzaev\site\account\controllers | ||||
|  * @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy> | ||||
|  */ | ||||
| final class manager extends controller | ||||
| { | ||||
|     public function render(string $file, array $vars = []): ?string | ||||
|     { | ||||
|         // Генерация представления | ||||
|         return (new view(new FilesystemLoader(VIEWS)))->render($file, $vars); | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user