redirects work for create and edit
This commit is contained in:
@@ -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