RE: [SMARTY] To who's right is right??

From: Date: Tue, 18 Jun 2002 10:38:15 +0000
Subject: RE: [SMARTY] To who's right is right??
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4921@lists.php.net to get a copy of this message
People learn by copying so I think smarty should come with a demo of a real application like a form or something. -----Original Message----- From: Gerard Samuel [mailto:gsam@trini0.org] Sent: June 18, 2002 4:34 AM To: bdunogier@wanadoo.fr Cc: Rasmus Mohr; 'smarty' Subject: Re: [SMARTY] To who's right is right?? Ok, I just got some files combined and using smarty logic. It wasn't too bad, and I don't feel like I have to say 1000 'Hail Marys' :) Thanks for your input... Bertrand DUNOGIER wrote: >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 > > > > > -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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