fix create
This commit is contained in:
parent
d75bc6defe
commit
910bf56766
@ -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
2
composer.lock
generated
@ -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"
|
||||||
}
|
}
|
||||||
|
@ -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">
|
||||||
|
@ -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">
|
||||||
|
Loading…
Reference in New Issue
Block a user