Re: [SMARTY] Usage Question

From: Date: Tue, 20 May 2003 11:29:46 +0000
Subject: Re: [SMARTY] Usage Question
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9580@lists.php.net to get a copy of this message
that's not a true seperation of presentation and application logic. for example, what if I'd like to print the result sets in a table that has two columns instead of one? I'd be forced to alter the PHP code... I could give you a dozen more examples, but I hope you got what I'd like to say :) Smarty was designed so that both coders and designer DO NOT need to follow the approach you proposed... David ----- Original Message ----- From: "John W. Holmes" <holmes072000@charter.net> To: <smarty-general@lists.php.net> Sent: Tuesday, May 20, 2003 2:46 AM Subject: [SMARTY] Usage Question > I've been doing some work for a client using vBulletin and their > template system. They have a true separation of presentation and logic. > All the templates have in them is variables. You control all loops and > logic through PHP. If you need to take a result set and make a bunch of > rows, you have a template for one row and call gettemplate() on each > loop. > > I was thinking that you could really use Smarty in this manner, too. > You're templates would only have Smarty variables in them. You would not > use sections or modifiers, etc. This would mean you'd have a great deal > more *.tpl files because basically anything that can change or is > conditional will require its own template. > > Does anyone recommend / use this approach? Smarty is probably overkill > is used in a manner like this. You could basically use include() and > have the same result. What do you think? > > ---John W. Holmes... > > PHP Architect - A monthly magazine for PHP Professionals. Get your copy > today. http://www.phparch.com/ > > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

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