There are three views in this project, which are as follows:
/path/to/codeigniter/application/views/tasks/view.php
: This displays a list of current tasks to the user as well as a form that allows the user to create new tasks./path/to/codeigniter/application/views/tasks/delete.php
: This displays a confirmation message to the users, asking them to confirm whether they really want to delete the task./path/to/codeigniter/application/views/nav/top_nav.php
: This displays the top-level menu. In this project, this is very simple; it contains a project name and link to go to thetasks
controller.
These are our three view files. Now let's go over each one, build the code, and discuss how they function.
Create the /path/to/codeigniter/application/views/tasks/view.php
file and add the following code to it:
<div class="page-header"> <?php echo form_open('tasks/index') ; ?> <div class="row"> <div class="col-lg-12"> <?php echo validation_errors...