RE: [PHP] Seperating presentation from logic

2002-06-27 Thread SP
une 27, 2002 7:40 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Seperating presentation from logic John Holmes wrote: > You really want a template system. Check out Smarty or patTemplate. > Devshed.com has a nice two part tutorial on patTemplate and I like how > it looks a little better than Smart

Re: [PHP] Seperating presentation from logic

2002-06-27 Thread Jesper Brunholm
John Holmes wrote: > You really want a template system. Check out Smarty or patTemplate. > Devshed.com has a nice two part tutorial on patTemplate and I like how > it looks a little better than Smarty right now. Might want to evaluate > both and see which is faster or easier. Great idea - except

RE: [PHP] Seperating presentation from logic

2002-06-27 Thread SP
Sent: June 27, 2002 12:39 AM To: 'SP'; 'Jean-Christian Imbeault'; [EMAIL PROTECTED] Subject: RE: [PHP] Seperating presentation from logic > There are a ton of template systems. Look here for performance > benchmarks: > http://www.phpinsider.com/benchmarks_phemplate &

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread John Holmes
> There are a ton of template systems. Look here for performance > benchmarks: > http://www.phpinsider.com/benchmarks_phemplate > > Unfortunately pattemplate isn't tested so I don't know how it rates. I downloaded the scripts and added patTemplate to the mix. It's average, rating in the middle

Re: [PHP] Seperating presentation from logic

2002-06-26 Thread Justin French
on 26/06/02 11:53 PM, Mark Gallagher ([EMAIL PROTECTED]) wrote: > 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. wel

Re: [PHP] Seperating presentation from logic

2002-06-26 Thread Peter J. Schoenster
On 25 Jun 2002 at 17:40, Jean-Christian Imbeault wrote: > Some of the "issues" are things like how to make it painless for both > the designers and me if one day, out of the blue, a designers decides > that the background colour should be changed, or the graphics changed. > Or even worse the two

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread David Freeman
> >>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? > > What if your designer wants to change from a two column > table to a four column table. Or change the menu from a v

Re: [PHP] Seperating presentation from logic

2002-06-26 Thread Erik Price
On Wednesday, June 26, 2002, at 09:05 AM, John Holmes wrote: > I disagree. Maybe I'm just not getting it, or understanding the "FULL > POWER" of xml/xslt. It just seems like it's adding in an additional > layer that you don't need. It seems so dependent on browser versions, > and parser version

Re: [PHP] Seperating presentation from logic

2002-06-26 Thread Mark Gallagher
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 designe

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread John Holmes
> 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 t

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread John Holmes
> personnaly, I agree with you, and I would really like to see more PHP > frameworks (or template systems) rely on XML/XSLT. > you can have a look at : > http://www.interakt.ro/products/Krysalis/ I disagree. Maybe I'm just not getting it, or understanding the "FULL POWER" of xml/xslt. It just see

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread David Freeman
> > $siteTitle > > $colBg = "#FF"; > $colText = "#FFCC99"; > $colLink = "#EE"; > $colComplimentary = "#CC6600"; > > > $fontHeading = " size=\"3\">"; Wouldn't you ultimately be better off moving most of this sort of thing into style sheets and then have the designers play w

RE: [PHP] Seperating presentation from logic

2002-06-26 Thread phpsurf
real project. looks interesting ... > -Original Message- > From: Jerome Houston [mailto:[EMAIL PROTECTED]] > Sent: mardi 25 juin 2002 20:51 > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: RE: [PHP] Seperating presentation from logic > > > Is there a particular rea

RE: [PHP] Seperating presentation from logic

2002-06-25 Thread Jerome Houston
Is there a particular reason everyone is skipping over the idea of using XML/XSLT? What you're talking about is EXACTLY what XSLT was designed for. You can write scripts that access the DB, and output XML. Then you just use XSL files written by your designers to translate your XML into HTML.

RE: [PHP] Seperating presentation from logic

2002-06-25 Thread SP
2 12:02 PM To: 'Jean-Christian Imbeault'; [EMAIL PROTECTED] Subject: RE: [PHP] Seperating presentation from logic You really want a template system. Check out Smarty or patTemplate. Devshed.com has a nice two part tutorial on patTemplate and I like how it looks a little better than Sma

RE: [PHP] Seperating presentation from logic

2002-06-25 Thread John Holmes
cument??? ---John Holmes... > -Original Message- > From: Jean-Christian Imbeault [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 25, 2002 3:50 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Seperating presentation from logic > > Thanks for the links. Hard to figure o

RE: [PHP] Seperating presentation from logic

2002-06-25 Thread SP
I recommend http://smarty.php.net for seperating presentation from logic. It's one of the best template systems currently. It worked out of the box for me but it took me like the long weekend to figure out some of the config folders. It does your standard variable substitution {$bgcolor} but wha

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread Justin French
on 25/06/02 6:40 PM, Jean-Christian Imbeault ([EMAIL PROTECTED]) wrote: > Some of the "issues" are things like how to make it painless for both > the designers and me if one day, out of the blue, a designers decides > that the background colour should be changed, or the graphics changed. > Or eve

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread Justin French
on 25/06/02 5:50 PM, Jean-Christian Imbeault ([EMAIL PROTECTED]) wrote: > Maybe my message was too vague but what I meant is that my designers > will come up with the site layout, colours, graphics etc ... I want them > to be able to do all their work without thinking about any programming. Why

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread Jean-Christian Imbeault
Thanks! I'll visit and read all the links you gave. Some of the "issues" are things like how to make it painless for both the designers and me if one day, out of the blue, a designers decides that the background colour should be changed, or the graphics changed. Or even worse the two column la

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread Justin French
I think the issues are VERY project specific. Luckily for me I'm the DESIGNER and PROGRAMMER on many of my projects, but often I'm just one of the two. When I'm just designing, I obviously need to develop page templates, but more and more of my time is spent developing style guides (often also c

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread René Moonen
Well... I still think that these tools can help. For example PHPWebSite (which I use for our Intranet) has a set of 'themes'. A theme consists of a style sheet (.css), some image files (logo's, backgrounds etc.) and a small set of PHP scripts that define things like standard header, footers.

Re: [PHP] Seperating presentation from logic

2002-06-25 Thread Jean-Christian Imbeault
Thanks for the links. Hard to figure out what those things are just from their web pages. They should work on making it easier to figure what the projects are. I'll have a look but ... Maybe my message was too vague but what I meant is that my designers will come up with the site layout, colo

Re: [PHP] Seperating presentation from logic

2002-06-24 Thread René Moonen
You might want to start by looking (download, instal, try) at available content managers like PHPWebSite http://phpwebsite.appstate.edu/ PHPNukehttp://phpnuke.org/ They do exactly that; seperate content from programming logic. As an admin you can assign certain users as beini