I am new to CodeIgniter and Ion Auth as well. All is well but when I am trying to delete user it doesn't delete any user by id.
I have added link for delete user as below in views/auth/index.php file, which lists all users.
<td><?php echo anchor("auth/edit_user/".$user->id, 'Edit') ;?> / <?php echo anchor("auth/delete_user/".$user->id, 'Delete') ;?></td>
I have created a page called delete_user.php and added delete_user($user->id) in the file. I am not sure I am doing any silly mistake.
Now when I click on delete link it takes me to the 404 which is obvious. So just wonder what I am missing? Do I need to add something in Controller? If yes than how can I write to delete the user and/or users?
BTW the MVC pattern is very confusing and sometime I feel it creates problem rather than make work easy.
Thanks a lot..