From: alex b. <en...@tu...> - 2001-05-24 04:35:59
|
> I concur with regard to the echo statements in the > code. I wrote a small database application in PHP with > a lot of if-then statements, and echo, print > statements. If I want to change the way each form of > the application looks, I have to go into the code and > change all the echo/print statements. And that's the rub. > I am currently working on a OOP version of the same > system and I am going to try to have it dump the data > into XML and use XLST to transform it, but I'll be > swimming below water for a couple of weeks before I > figure it out. You're welcome to use that "example" xsl/xml I posted, I've tested it and it works quite well. Part of r2 will be a complete xslt library of form elements and basic form+list templates. Also, if you have any problems with xslt/etc post 'em here and I'm glad to answer what I can. > Anyways, echo statements pretty much ruin web gui > code, as far as I'm concerned. well said. _a |