Hi
I am trying to write my current project in OOP PHP, but have come across a problem.
I have three classes: GeneralFunctions, DbAccess and Products.
Products extends DbAccess because it needs to access the database. It also needs some of the functions from GeneralFunctions though. I can't seem to use extend to link it to both GeneralFunctions and DbAccess.
I thought of having DbAccess extend GeneralFunctions, so the three are in a chain, but there are going to bo other classes down the line which will just need DbAccess, so loading in GeneralFunctions too will be redundant.
How else can I make the methods of GeneralFunctions available to Products?
Any advice or links are very much appreciated,
V