Hello everyone, I am interested in learning Smarty Template Engine, but upon reading it's documentation, I see some php codes. My question now is, do I have to learn PHP first, as a requisite, for me to understand Smarty? For now, I only knew about XHTML and CSS. The reason why I want to learn this stuff is, I want to edit a template for a classifieds ads script.
Smarty is probably the most bloated framework to use and is the most unnecessary code written. PHP itself is a templating engine and if your desire is to separate business logic from design, I highly suggest you read up on MVC. If you're going to use a framework, I'd like to recommend CodeIgnitor. To your original question, I suggest you learn the basics of PHP. You should of course, understand any code you're using or writing.
@jhine thanks for the input, im gonna search for pros and cons of it. several web dev blogs i've read recommends smarty. they say that they can separate presentations from blah blah... by using smarty engine. but i think the same as you, it think smarty complicates thing more. @nveid I'll search on that one. currently im creating a my first ever theme. and this will be integrated to a smarty template engine. it's for a open source script.