There are many template engines that php can use to separate logic and page design.

One good one is called smarty.

-Wil

On Mon, 01 April 2002, Greg Dunn wrote:

>
> You pretty much can't separate logic from presentation in PHP because the
> scripting has to be in the page code with the HTML.  If you have HTML design
> people working on the pages you risk having them screw up your business
> logic, and vice versa.  IT also makes the code more complicated to decipher
> and maintain.  You can move business logic out with servlets (and with beans
> and custom tags).  Since servlets are Java, and OO, you can use the same one
> in multiple pages.  PHP = JSP only, without the added power of servlets,
> etc.
>
> Greg
>
>
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Alex
> Pop
> Sent: Saturday, March 30, 2002 11:39 AM
> To: [EMAIL PROTECTED]
> Subject: PHP or servlets?
>
>
> Hi,
>
> Why are servlets considered better than PHP?
>
> and are there any articles which i could use as references?
>
> Thanks,
> Alex
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html


__________________________________________
Launch your own web site Today!
Create a Web site for your family,
friends, photos, or a special event.
Visit: http://www.namezero.com/sitebuilder

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to