Re: templates with php

From: Date: Mon, 31 Jul 2000 19:38:10 +0000
Subject: Re: templates with php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-9251@lists.php.net to get a copy of this message
> > <TABLE> > > <?loop("deidre")?> > > <TR><TD>whatever</TD></TR> > > <?endloop("deidre")?> > > </TABLE> > > > > Not very different at all. > > > > And I can guarantee you that this is faster. > > > > -Rasmus > > This is exactly what I was wondering about. How might this be implemented? > How can one function start a loop and then another function end it? Well, you would need to restructure it a little bit and pass in your loop string. Or have functions like, <?sql_table('product_name','price')?> which would connect to your database, pull out the result and display a table of the product_name and price columns. 6 years ago I needed a templating system myself. One that was very flexible, would play nice with HTML authoring tools since content types love to use stuff like FrontPage and DreamWeaver, and once that could easily be extended. 6 years later this templating system has matured a lot. It is called PHP. You are starting down the same path. -Rasmus

« previous php.general (#9251) next »