smarty is for dummies. PHP is a template engine. Putting a template engine in PHP is like buying a semitruck, then towing the semitruck around with a pick up truck.
I've had this rant before and am not going to do it again. Do a search of posts I've made containing smarty and you can read the previous rants. Smarty is the worst thing you can do to your code.