Re[2]: [SMARTY] To who's right is right??

From: Date: Sat, 15 Jun 2002 07:23:45 +0000
Subject: Re[2]: [SMARTY] To who's right is right??
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4918@lists.php.net to get a copy of this message
RM> Gerard don't do that, don't feel guilty! It's allright... ;-) RM> Seperating logic and templates makes maintenance easier (IMHO). I also think that separating backend logic and templates logic makes maintenance easier and coding better. IMHO there are big differences between the part of a script that alters a database and reads data, and the part that defines wether a link is displayed in bold or not. The first part is the backend logic, the 2nd part fits in the frontend logic. RM> but Bertrand is right in claiming the need for some sort of RM> functionality in the templates. I know, I know... :) RM> My "keep it simple" statement was maybe a bit vague - the point RM> was to keep the templates as simple as possible in regard to RM> control statements and so on. I realized while coding (a lot) (on big projects) that you could gain much time and coding with separating correctly backend code and templates logic. The backend code ends up way less complex, and the template code is more simple that what it would have been in the backend, since smarty pseudo-code is dedicated to display, therefore more efficient when use for it. RM> Maybe it's just a question of taste? This is correct, too. Cheers, Bertrand

« previous php.smarty.general (#4918) next »