Re: Re: smarty

From: Date: Wed, 14 Apr 2004 16:22:06 +0000
Subject: Re: Re: smarty
References: 1 2 3 4 5 6 7  Groups: php.general 
Request: Send a blank email to php-general+get-183344@lists.php.net to get a copy of this message
Peter Morgan said: >>>We sit in front of a PC and mock up the forms/ pages/ nav bar etc.. That >>>stuff then gets coded. >> >>I agree, and I'm saying you can also do that with native PHP. >>I plan on doing that with the next site I build. Then if I see that it >>makes sense to use Smarty I will, but you can mock up an entire site in >>Microsoft Word and templatize it with normal PHP. I believe we'll work >>even faster because Smarty isn't "in the way." > > what point are you actually trying to make.. That you can also *easily* use native PHP to mock up the forms/pages/nav bar into an HTML file. I'm trying to tell you that Smarty isn't the _only_ way to do what you're proposing, as I thought just a few weeks ago. In fact, it's simple to use native PHP to do the same thing. If you need to see an example to understand this, take a look at my post with the three examples (PHP spaghetti code, Smarty template, PHP template): http://marc.theaimsgroup.com/?l=php-general&m=108145205519710&w=2 I thought Smarty was the ONLY way to separate business logic from presentation, but I was wrong. It's a great tool but it's not the be-all-end-all I thought it was. /dev/idal

« previous php.general (#183344) next »