Hi there
I’m a bit confused with oop4 and oop5.
We have to adapt user_find.php to produce an output if submit is_set else it should produce a drop down list. Simple enough
My question is what is oop4.php needed for? Does it simply point to user_find.php? Or do we have to echo the form on oop4.php and have it submit to user_find.php? The latter seeming a bit clumsy.
Secondly oop5 requires us to adapt user_find.php once more to produce a different output. What then do we call this second modified version of user_find.php? user_find_oop5.php?
Would it not be simpler to copy the contents of user_find.php into oop4.php and oop5.php and do away with the two versions of user_find.php?
Finally, for oop5 we need to create a new user_friends table in the database with modified associations.
I can call this new table user_friends_oop5 for example, but that would require me to adapt the function getFriends in user.php so that it selects friend_id from user_friends_oop5 instead of from user_friends.
I don’t like the idea of changing the class just for oop5. Should I just create another database with a users and modified user_friends table?
Many thanks