Admin logout function [Bagian 18]

Wow, the author finally got down to creating a course registration website using this Codeigniter framework, huh.

For this final phase, the author will complete the process of creating the unsubscribe feature in the dashboard Administrator. At the end of this article, the author has also prepared complete source code from part 1 to part 18 and given Live demo Course registration website.

Also read:

CREATE A LOGOUT FUNCTION IN THE DASHBOARD ADMIN

1. Paste the following code in. added Files welcome.php found in Folder C: xampp htdocs inwepo application controllers admin.

function logout()  {    $this->session->unset_userdata('Login');    redirect('welcome','refresh');  }

2. Then add the program parts as described below Files header.php found in Folder C: xampp htdocs inwepo application views admin.

So if the administrator chooses Logout menu As shown below, the admin page will automatically exit to the main page.

Then the main page of the course registration website will look like this:

Taram until we get to the end of the tutorial website this long and tiresome. Hopefully readers will get useful knowledge from the presence of this article.

DOWNLOAD FILES

The author has also provided Complete source code starting from the main page, User dashboard, dashboard Admin, database as well Live demo of the created program.

Finally, the author would like to take this opportunity to thank the loyal Inwepo readers. See you in the manufacturing tutorial website the others yes.






Leave a Reply

Your email address will not be published.