I am curious as I am currently using functions exclusively in my webpages. The MVC pattern is very interesting, and I know Code Igniter utilizes classes which works very well. I want to be able to keep my code as clean as possible, and I thought about trying to move my functions into classes.
Currently I am separating the files by logic, so I have functions that output the html with arguments that pass any dynamic content, and the functions which handle the user input. I also have functions that interact with the database. I require and include the necessary files between them. As one can tell, there are a lot of arguments being passed around. So that leads me to wanting to try a style of OOP in PHP that I can do the same without having any html inside of the actual class.
I really don't want to hear anything about frameworks as the point is to learn and incorporate these ideas into my own website. That being said, I am fairly new at web development, so I do not understand the many different styles in setting up the logic of websites.
I would like to get some insight on how to best clean up my code in OOP?
EDIT: It is fairly obvious people have strong feelings about frameworks. So I decided to make this very clear; MY WEBSITE IS A PROJECT FOR LEARNING. I WISH ONLY TO LEARN FROM IT. THEREFORE I do not wish to use a framework as it makes more sense for me to learn how it all works before making my life easier and actually use a framework. A FRAMEWORK FOR MORE ROBUSTS PROJECTS. Thank you.