HTML Inside the class?
View Single Post
05-31-2009, 02:06 PM
Join Date: Feb 2009
Location: New York
Originally Posted by
I recomend only using the class for handling the data. Then you have the HTML seperate(outside of the class), and feed the HTML with the data returned from the class.
Agreed. I think that's that is confusing about the power of OOP. It can really do almost anything you need it to do so where does one stop? If you think of it from an MVC point of view, you would keep the class for data usage only, while you keep the HTML/design separate.
I hope that makes sense.
View Public Profile
Send a private message to allworknoplay
Find More Posts by allworknoplay