Re: PHP and HTML - Templates Man

From: Date: Thu, 29 Jun 2000 23:31:36 +0000
Subject: Re: PHP and HTML - Templates Man
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-3921@lists.php.net to get a copy of this message
would love to.., not really that well supported yet.. Szii wrote in message <3.0.5.32.20000628223519.009bde60@earthlink.net>... >Use XML. That's what it was designed for. > >-Szii > >At 01:23 AM 6/29/00 -0400, Christian Calloway wrote: >>Wow, I only saw one reference to using templates in the replies to this >>question. Anyways, one of the basic paradigms of web development, is the >>seperation of script logic and markup presentation. You wanna keep your php >>scripting as far away from your html as possible, which can be done via one >>of the many (to many) available template engines for php. You never ever >>want to output little bits of html from your script, it will just make >>things incredibly difficult to maintain (trust me, i've been there). Why? >>Well if you want to change the markup/presentation of your page, all you >>have to do is edit a seperate template file which contains all of your >>markup, throw it into Dreamweaver for example, make your changes, then throw >>it back on the server. No programmattic changes have to be made, so your >>code/logic can remain intact. >> >>The only problem is there is not set specification for Template engines, as >>in there is nothing defining what their exact behavior should be and all of >>their interfaces vary. Pain in the ass if you ever want to change template >>engines.. I really wish they would build one into php... >> >> >>"Steven Reed" wrote in message ... >>>Hello All, >>> >>>I am new to PHP, i was wondering which method is best for displaying HTML >>on >>>PHP pages, efficiently. >>>Is it to embed the HTML statements inside of Echo statements, or to close >>>the PHP tags and then have normal HTML ? >>> >>>Thanks in advance - Steven. >>> >>> >>>-- >>>PHP General Mailing List (http://www.php.net/) >>>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >>>For additional commands, e-mail: php-general-help@lists.php.net >>>To contact the list administrators, e-mail: php-list-admin@lists.php.net >>> >> >> >> >>-- >>PHP General Mailing List (http://www.php.net/) >>To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >>For additional commands, e-mail: php-general-help@lists.php.net >>To contact the list administrators, e-mail: php-list-admin@lists.php.net >> >> >> > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#3921) next »