kernel update
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user