...

/

Project Solution: Edit and Delete Tasks

Project Solution: Edit and Delete Tasks

Check out the solution to the challenge given in the previous lesson.

Solution

Here is a complete implementation of the problem. Let’s have a look at it!

Explanation

Let’s go through the solution in detail.

pages/functions/task-crud.php file

We copied the logic for creating the following functions from create-task.php:

  • From line 2 to line 9, we created a function for normalizing data.
  • From line 11 to line 18, we added a function for validating the normalized data.
  • From line 20 to line 28, we added another function for loading all the task data.
  • From line 30 to line 36, we created a function that saves
...