fix create

This commit is contained in:
Билай Станислав 2024-07-23 16:53:38 +03:00
parent d75bc6defe
commit 910bf56766
4 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ class UserController extends Controller{
{ {
// $loader = new \Twig\Loader\FilesystemLoader(__DIR__.'/../views'); // $loader = new \Twig\Loader\FilesystemLoader(__DIR__.'/../views');
// $twig = new \Twig\Environment($loader, ['cache' => 'app/views/cache']); // $twig = new \Twig\Environment($loader, ['cache' => 'app/views/cache']);
echo $this->twig->render('userCreate.html'); echo $this->twig->render('user_create.html.twig');
} }
public function actionAdd(): void public function actionAdd(): void
@ -84,7 +84,7 @@ class UserController extends Controller{
{ {
// $loader = new \Twig\Loader\FilesystemLoader(__DIR__.'/../views'); // $loader = new \Twig\Loader\FilesystemLoader(__DIR__.'/../views');
// $twig = new \Twig\Environment($loader, ['cache' => 'app/views/cache']); // $twig = new \Twig\Environment($loader, ['cache' => 'app/views/cache']);
echo $this->twig->render('userUpdate.html'); echo $this->twig->render('user_update.html.twig');
} }
public function actionEdit(): void public function actionEdit(): void

2
composer.lock generated
View File

@ -2006,5 +2006,5 @@
"prefer-lowest": false, "prefer-lowest": false,
"platform": [], "platform": [],
"platform-dev": [], "platform-dev": [],
"plugin-api-version": "2.3.0" "plugin-api-version": "2.6.0"
} }

View File

@ -1,4 +1,4 @@
{% extends "mainLayout.html" %} {% extends "main_layout.html.twig" %}
{% block content %} {% block content %}
<form action="/admin/user/" method="post"> <form action="/admin/user/" method="post">

View File

@ -1,4 +1,4 @@
{% extends "mainLayout.html" %} {% extends "main_layout.html.twig" %}
{% block content %} {% block content %}
<form action="/admin/user/edit" method="post"> <form action="/admin/user/edit" method="post">