Re: [SMARTY] Re: smarty templates vs. php templates

From: Date: Thu, 07 Apr 2005 14:02:40 +0000
Subject: Re: [SMARTY] Re: smarty templates vs. php templates
References: 1 2 3 4 5  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12432@lists.php.net to get a copy of this message
Vicente Werner wrote:
All I can say is that certainly they haven't seriously evaluated smarty, you can use it pretty much in the same way than Xtemplate, template power or any other "just replace the vars" template system out there. Said that, the real advantage of smarty is that it let's you separate the presentation logic from bussines logic, not just the html code, but also higher order process related to output like trasnlation, creation of tables, etc... in order to let you change your presentation without 0 changes on your bussines logic.
Absolutely. We use Smarty for Trafficmac (www.trafficmac.com) which handles all the online ad server reporting for the Wall Street Journal/CBS Marketwatch, SmartMoney, Foxnews.com, Cars.com, Dictionary.com, MSN-Europe and others. These are really data-heavy sites with lots of massive tables, report generators and so forth. The back-end PHP code would be a complete mess without the ability to throw a database result set to Smarty for visualization. Our DHTML API is almost totally dependent on Smarty... which is a long way of saying that table generation *is* a presentation, not back-end, task. For the same reason, we keep the business logic in the database, in PostgreSQL procs. It's all about using the right tool for the right job.

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