I am creating a content management system using PHP. I am trying to use oop classes.
My problem is:
I have created so many classes. One for database, file manipulation, data validation and so on. Now, database class needs to call some functions in the validation. file manipulation needs to call database and validation also.
I cannot use :: to execute a function in another class. I have to create an object of each and every class. because class function needs each others.
Finally, I found that I have to create extended classes ALWAYS, to have access of all functions. I am really scared about using this as the application grows.
Any advise would be highly appreciated.