I've been learning the OOP way of coding, and now can better see the benefits of doing so. Up to this point in my coding, I've always had the code and outputted HTML in the same script. I see the benefits of seperating the code from the presentation. My question is this:
What's the best way to do this? Do you build methods that display outputted data for you? Or do you leave that in the same script being called?
An example:
Say I have a forum, and you have classes that handle the db access, posting, sessions, etc. Would you build another class/method to display your various items (threads, member info, mod options, etc)?
I'm assuming so, but would really appreciate feedback from experienced OOP coders. :p
TIA!