Why OO? WAS Re: [thelist] php design question
Steve Lewis
slewis at macrovista.net
Wed Nov 20 12:05:07 CST 2002
David U. wrote:
> Steve Lewis wrote:
>
>>how can you embrace encapsulation while embracing the principle of
>>separation of content and display?
> $product = new productObject($product_id);
> All of those methods could be wrapped in XML, XHTML, WML, PDF, XLS or any
> other format you'd want. They could be used on search pages, product pages,
> email newsletters, YOU NAME IT! They are content _in specific_. With this
> sort of planning you could implement a pretty decent MVCC application.
There is zero separation there. You must change productObject in order
to update the formatting used.
That is my point.
--Steve
More information about the thelist
mailing list