Install PHP version 7.4 or higher and ensure the following extensions are installed :
To familiarize myself with the CodeIgniter 4 framework, I created a first project called "Todo-list," which allows listing tasks to do.
CodeIgniter 4 is a PHP framework that follows the MVC (Model-View-Controller) architecture :
- Model : Business logic classes.
- View : HTML pages.
- Controller: Project methods (event handlers).
- Dao : Classes for database access.
MVC Diagram :
index page :
Users can reorder tasks by clicking the following button :
Page to Modify Task Order (Tasks are displayed in ascending order) :
Here, the position of the task "éteindre le pc" is swapped with the task "Ranger" :
Result :
Adding a New Task Click on the following button :
Fill out the form to add the task :
The new task is successfully added. To edit it, click the gray button :
Edit Form :
The task is successfully updated.
Marking a Task as Completed, Click on the blue button :
Deleting a Completed Task Click on the red button :

