I'm trying to learn to OOP and in doing so I am just browsing a few tutorials using OOP methods.
http://net.tutsplus.com/tutorials/php/a-better-login-system/
I don't understand how the user_perms table comes in to effect. I am looking at the populated DB for this tutorial and it's empty..?
getUserPerms() selects all the user_perms from the (empty) table.
buildACL() merges it with the permissions array.
I don't understand how it works if the user_perms table is always empty?
Could someone explain this too me please?
Thank you.
http://net.tutsplus.com/tutorials/php/a-better-login-system/
I don't understand how the user_perms table comes in to effect. I am looking at the populated DB for this tutorial and it's empty..?
getUserPerms() selects all the user_perms from the (empty) table.
buildACL() merges it with the permissions array.
I don't understand how it works if the user_perms table is always empty?
Could someone explain this too me please?
Thank you.