Re: [SMARTY] Seperation of Logic and Presentation
"Jonathan Villa" <[email protected]>
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <35947.216.125.144.21.1122661565.squirrel@mail.innovativesource.net> |
<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? -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php