RE: [SMARTY] How far to go with smarty templating?

From: Date: Mon, 24 Jun 2002 16:12:53 +0000
Subject: RE: [SMARTY] How far to go with smarty templating?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4994@lists.php.net to get a copy of this message
The html_options smarty function does just this in the template in one line of code. I use it extensively. One of Smarty's best features IMHO.. -----Original Message----- From: Jonathan Chum [mailto:jchum@aismedia.com] Sent: Monday, June 24, 2002 4:07 AM To: 'Avern Williams'; smarty-general@lists.php.net Subject: RE: [SMARTY] How far to go with smarty templating? I had this problem with developing a lot of scripts when the need is to dump out a input drop down box where a certain value is selected. This require more logic in the template, so I seperated that into the PHP code and once my drop down was created, I've replaced it back in to the template. I doubt any of my designers will need to a way to modify the drop down box when they start designing. If they do, they come to me, otherwise adding a whole bunch of other functions to loop through an array and then if statement checks to select a certain value is just too much for a template. Regards, Jonathan Chum -- http://www.blazeboard.com Portal developed with Smarty, heck yea! -----Original Message----- From: Avern Williams [mailto:avern@hotmail.com] Sent: Sunday, June 23, 2002 10:23 AM To: smarty-general@lists.php.net Subject: [SMARTY] How far to go with smarty templating? Hi, This may be more of a philosophical smarty question, but here goes. I have an existing php application that does a database query, formats the results, and then displays the formatted results within a webpage. To integrate this app with smarty, does it make more sense for me to: A) have the existing app do the query and format the query results. Then have smarty display those results in a web page OR B) have the existing app only do the database the query, then have smarty both format the query results and display the entire web page Again, I'm new to smarty, but I'd appreciate your opinions on whether one method has advantages over the other. thanks, Avern _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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