Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed PHP User Authentication!
You have completed PHP User Authentication!
Preview
Here we will create an administration panel that displays all the users and allows their role to be changed.
This video doesn't have any notes.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
We'll need to add this
functionality into steps.
0:00
First we need to create a user list
with promote and demote buttons.
0:02
When we have those wired up will
promote ourselves to an administrator.
0:07
After that we'll lock down
the administrator panel
0:12
to only administrators.
0:14
First we need to get all of our users so
that we can loop through them.
0:17
In the functions.php file
create a new function.
0:20
We'll call this getAllUsers.
0:25
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up