Re: Seperating presentation from logic

From: Date: Wed, 26 Jun 2002 13:53:02 +0000
Subject: Re: Seperating presentation from logic
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103966@lists.php.net to get a copy of this message
John Holmes wrote:
Wouldn't you ultimately be better off moving most of this sort of
thing
into style sheets and then have the designers play with the style
sheets
instead?
Sure, if all they are doing is playing with fonts, colors, sizes, etc... What if your designer wants to change from a two column table to a four column table. Or change the menu from a vertical column on the left to a horizontal row on the bottom that's run by images instead of text.
Theoretically this could still be done only with editing of the stylesheet. Of course, it's not that simple - Mozilla comes closest to decent browser support for that sort of radical change, and even it's not there yet.
Do you trust your designer to do all that and not mess up any of your PHP code that's thrown in with the HTML? That's why you use templates...
Actually, I think the idea behind what the previous poster was saying is that: a) with stylesheets they don't need to touch the HTML once they've finished with it (and handed it over to you for PHP work) b) you therefore won't need templates -- Mark Gallagher http://cyberfuddle.com/infinitebabble/

« previous php.general (#103966) next »