ms client update

This commit is contained in:
2024-10-31 16:12:02 +03:00
parent 9d243b5b35
commit a02c55e16e
19 changed files with 75 additions and 142 deletions

View File

@ -32,7 +32,7 @@ class PostController extends AdminController
if ($postForm->validate()) {
$post = $this->postService->create($postForm);
if ($post) {
$this->redirect("/admin/post/" . $post->id);
$this->redirect("/admin/post/view/" . $post->id);
}
}
$this->redirect("/admin/post/create");
@ -87,7 +87,7 @@ class PostController extends AdminController
if ($postForm->validate()) {
$post = $this->postService->update($postForm, $post);
if ($post) {
$this->redirect("/admin/post/" . $post->id);
$this->redirect("/admin/post/view/" . $post->id);
}
}
$this->redirect("/admin/post/update/" . $id);