ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  The Dynamic Duo of PEAR::DB and Smarty
Subject:   This is not separating logic from presentation
Date:   2003-04-24 09:14:15
From:   anonymous2
Response to: This is not separating logic from presentation

>> Any logic flow control should not be in the templates...


I felt exactly the same way for a very long time. I had heard of smarty for months before I ever actually tried it. I didn't like it. Putting looping constructs inside a html file! WTF?!


However, I decided to just try it because of all the rave reviews I had seen and I'll never go back.


Trying to wrap my head around the fact that there is 'code' in the html was tough. This method was as bassackwards as I could imagine. I stuck with it though...I just made some example pages to become familiar with it then I modified some existing pages from phplib to smarty and WOW. The ease of editing the smarty pages and the power available in smarty changed how I've programed every php application since.


So, my advice is to try it out. It may not be for you....I didn't think it was for me, but damn was I wrong.


Tom


1 to 1 of 1
  1. This is not separating logic from presentation
    2003-06-05 12:40:35  anonymous2 [View]

1 to 1 of 1