Re: [SMARTY-DEV] Re: Smarty??

From: Date: Fri, 23 Jan 2004 20:42:07 +0000
Subject: Re: [SMARTY-DEV] Re: Smarty??
References: 1 2 3  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2064@lists.php.net to get a copy of this message
Ah, now that I read the whole thing again... The Smarty philosophy is about separating business logic from presentation logic. Meaning, there can be logic in the templates so long as it is for presentation only. This does not imply that there is a force of separation of business logic from presentation logic, Smarty has no knowledge of the difference between them. If you put business logic in the template, that is your own doing. This also does not mean you _must_ have logic in the templates. You can omit all logic and reduce the templates to just text and variables if you so desire. Monte On Fri, 2004-01-23 at 05:57, Muhammed Mamedov wrote: > In the Smarty manual it says the following: > > "...Now for a short word on what Smarty does NOT do. Smarty does not attempt > to completely separate logic from the templates...." > > Well..this has disappointed me a bit.. So it means that 100% code/design > seperation cannot be achieved with Smarty... Do you know any way of > achieving it? > > > > ----- Original Message ----- > From: "pete M" <pmorgan@ukds.net> > To: <smarty-dev@lists.php.net> > Sent: Wednesday, January 21, 2004 3:29 PM > Subject: [SMARTY-DEV] Re: Smarty?? > > > > I use Smarty at work and its wonderful.. > > > > i do the coding with php and pear db > > my collegue does the html templates and CSS > > the graphic designer does the images > > > > and we never clash ;-) > > > > it was a nightmare previously and Smarty has made us at least 200% more > > productive in terms of time and quality ;-))) > > > > pete > > > > Muhammed Mamedov wrote: > > > Hi, > > > > > > I am working on a PHP application where I need 100% (or anything alike) > seperation of code and design. I'm experienced enough with PHP but is new to > this approach : SMARTY. On the NEt I found about it and want your comments.. > Do you suggest me using it? And what exactly it will gain me?.... > > > > > > Regards, > > > Muhammed Mamedov > > > > > > > -- > > Smarty Development Mailing List (http://smarty.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > >

« previous php.smarty.dev (#2064) next »