Usage Question

From: Date: Tue, 20 May 2003 00:46:06 +0000
Subject: Usage Question
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9579@lists.php.net to get a copy of this message
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/

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