RE: [PHP] Seperating presentation from logic

From: Date: Tue, 25 Jun 2002 12:14:04 +0000
Subject: RE: [PHP] Seperating presentation from logic
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103766@lists.php.net to get a copy of this message
I recommend http://smarty.php.net for seperating presentation from logic. It's one of the best template systems currently. It worked out of the box for me but it took me like the long weekend to figure out some of the config folders. It does your standard variable substitution {$bgcolor} but what I like about it is that it lets you code your own custom tags for your designers like {display_calender} so it hides all the php code for displaying a calender or something. Your designer just types in {display_calender} in the html files and it comes out a calender everytime. -----Original Message----- From: Jean-Christian Imbeault [mailto:jean_christian@myrealbox.com] Sent: June 25, 2002 1:00 AM To: php-general@lists.php.net Subject: [PHP] Seperating presentation from logic I'm just about to start a large PHP project in which I get to work with professional designers/layout people. I want to separate all the programming logic from the presentation but I am not sure how to do this. Can anyone point me to resources (web tutorials/articles or books) that would help me figure out how best to separate my programming work from designer's work and how best to integrate them? Sorry for asking such a generic question but I don't know how to best phrase it. I did look on the web but the best I could find were some mentions of templates. While templates seems ok they don't address all the issues of separation presentation from code (if I understand them correctly). Thanks! Jc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#103766) next »