redirects work for create and edit
This commit is contained in:
1 parent
1a5a069844
commit
5a63cc66c5
4 files changed
+5
-30
No files matched your search
@@ -52,7 +52,6 @@ class NotesController
|
||||
$_POST['content'],
|
||||
$_SESSION['user_id']
|
||||
);
|
||||
exit();
|
||||
|
||||
if ($note) {
|
||||
// Redirect to show notes page after successful creation
|
||||
@@ -91,6 +90,6 @@ class NotesController
|
||||
{
|
||||
$noteId = $_GET['id'];
|
||||
$this->notesModel->deleteNote($noteId, $_SESSION['user_id']);
|
||||
header("Location: ?controller=Notes&page=showNotes");
|
||||
header("Location: ?controller=Notes&page=showNotes&do=showNotes");
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user