timtamboy63
Active Member
I just don't get it. Why create one class, eg
then use the extends keyword like so
Why not just put it in one big class and only call the admin function for when they are needed?
PHP:
class user{
function login(){
//login stuff
}
}
then use the extends keyword like so
PHP:
class admin extends user{
function admin(){
//admin stuff
}
}
Why not just put it in one big class and only call the admin function for when they are needed?