Why OO? WAS Re: [thelist] php design question

Max Kanat-Alexander maxka at cats.ucsc.edu
Tue Nov 19 20:48:00 CST 2002


--
[ Picked text/plain from multipart/alternative ]
At 05:56 PM 11/19/2002, you wrote:
>how can you embrace encapsulation while embracing the principle of
>separation of content and display?

         The best way? Make objects that generate HTML with CSS classes.
Instead of setting style="color: red" on the inside of your object, set
class="redObject" (or hopefully some other, better, more descriptive class
name.)

         -Max
--




More information about the thelist mailing list