Re: [SMARTY] Seperation of Logic and Presentation

From: Date: Fri, 29 Jul 2005 18:26:05 +0000
Subject: Re: [SMARTY] Seperation of Logic and Presentation
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12898@lists.php.net to get a copy of this message
<quote who="Vicente Werner"> > I take a completely different approach. My applications work mostly > like real gui applications, so each page the user sees is composed by > a group of components and small templates rendered ina hierarchical > way. Each template includes all the presentation logic for it, so the > only effort from the php side is to pass all the data the template may > need. Also I isolate myself as much as possible from the environment, > so I get the data always trough functions or specially prepared arrays > already filtered and secured. > whatever works best for you... but "Each template includes all the presentation logic for it" concerns me... what if you had to change shell/template? wouldn't you have to then redit the every single page?

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