4

So I've been trying to use bootstrap alerts after deleting a category item in my cms project.

The problem is that I send params via get request and after sending a query to mysql it's best to refresh the page using header to both update the new changes but also prevent the params from staying in the url.

Unfortunately, after refreshing, my alerts don't run because the context of deleting a category is over at that point. I'm sure I'll find a solution eventually, but it's causing headaches and it's a good time waster xD

Comments
  • 1
    On your HTML files add JS vars from the backend if an alert should be run.
    I know that it's done like this in Laravel. And is probably the easiest and best method
Add Comment