How do you to separate the php logic from the html presentation>

jsn

Registered
Hi all.

What is the best way to separate the php logic from the html presentation, whenworking with PHP ?

Thanks
jose
 
jsn said:
Hi all.

What is the best way to separate the php logic from the html presentation, whenworking with PHP ?

Thanks
jose

well, your question is a bit vague , but if you talk about separating content from display, the best way generally speaking is working with html templates, and using php to fill these templates with, say, mySQL content.
a good php template system : smarty >> http://smarty.php.net/

hope this helps,
 
Back
Top