Re: "Database tags" ala Lasso

From: Date: Mon, 29 Oct 2001 17:38:15 +0000
Subject: Re: "Database tags" ala Lasso
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72749@lists.php.net to get a copy of this message
> For the futurists around here: Is there any chance that php will > include "database tags" ala Lasso? highly unlikely, but you can achieve similar ends with one of the template engines for PHP. with a little work, you should be able to accomplish the same ends. check out Smarty (dont remeber the URL - check Hotscripts.com) and see what you come up with. Sverre Johan Tøvik <sverre.tovik@tibe.no> wrote in message news:a05101004b8031706353a@[193.215.214.144]... > Hi, > For those who don't know what I > mean, here's an axample (not quite correct Lasso code, but it should > get the point across): > > [db select="somedb"] > [db query="sql"] > > <table> > > [record] > <tr> > <!-- everything in this tag is repeated for each record > <td> > [field="name"] > </td> > <td> > [field="address"] > </td> > </tr> > [/record] > </table> > > > Err... You get the point... Or, for those of you who have problems > recognizing simple stuff when you see it (like myself when trying to > learn applescript when I was used to stuff like C), the point is that > you don't have to do all that annoying escaping of quotes, and if you > open the code in a graphical editor, you can edit to your heart's > delight, cuz the db tags stays put. > > > Regards, > > Sverre Johan Toevik > -- > <disclaimer> I speak for myself only! </disclaimer> > "to be yourself, in a world that tries, night and day, to make you just > like everybody else - is to fight the greatest battle there ever is to > fight, and never stop fighting" -- e.e. cummings

« previous php.general (#72749) next »