? tiers applications

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
maldar
Forum Commoner
Posts: 49
Joined: Mon Aug 18, 2003 4:39 pm

? tiers applications

Post by maldar »

hi,
Do you think PHP has 3-Tiers programming facility?
if yes,what are these tiers and how?
Thanks in advance.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

last time i'm going to refer to this site (else i'm going to look like a spammer or so :p)

http://www.tonymarston.net/php-mysql/de ... html#3tier
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Php - and OOP - lets you define as many layers as you like.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

A point on which McGruff and I disagree. You don't need OOP to define or implement layers/tiers. It is one good way to implement it, but the tiers do not have anything to do with programming style.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

When it comes to n-tier applications, it's much easier to plan, execute, keep control of your code and maintain it with OOP. You end up with a cleaner application. But that's not a new discussion has been done many times over elsewhere.
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

arborint wrote:A point on which McGruff and I disagree. You don't need OOP to define or implement layers/tiers. It is one good way to implement it, but the tiers do not have anything to do with programming style.
I'm genuinely looking forward to seeing you back that up here. We seem to have been arguing our different points of view a lot recently and it really is time to thrash it out with some real code examples.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

I've been too busy to think about your challenge. I'll try to grab a half hour tonight to give you some more code. Although my above point was that arcihtecture is above implementation style.
Post Reply