Well I have never use this module before, and I'd like to use it for one of my sites, Basically my site is consist of some tables and the site shows these tables with some features to edit the values in these tables, my question how I can use Smarty for in my work? more info: http://smarty.php.net/
What are you asking for? You posted the link to your question already. http://smarty.php.net/crashcourse.php
well I know whats already in the link, but I want to know, if you are using it or not, in another words should I use it or it is worthless? Thank you
Your topic title says "how to", so it was a bit misleading. I think it's depends on the type of project you're working on, and personal choice. It's useful for larger sites, so you can reuse the templates all the time, and only have to modify one, and it changes on all other sites with this template. It's also good to keep your PHP code separated from the HTML. Some people find it easier to work with. I wouldn't use or recommend it for smaller sites. (3 or 4 pages). If you plan to make a bigger one, I would recommend it. It's one time more work to change the system to make it work with Smarty, but once it is, it's easy to add new pages and keep the layout on each. And modify it later of course. But it's still your personal choice. Some people prefer to work with the traditional way. It's all up to you. I'd suggest you try it out and see if you like it, and then decide.
The big idea behind Smarty is the separation of code vs. layout or templates. This is helpful when you have programmers and designers on your team. Your designers wont have to know programming they can just drop in the variables your programmers create. It's a very popular system. I use it on a few sites.
I am developing web sites about 10 years and tried 5 or even more different template engines. And now I am sure that the best and the fastest one is PHP!!!! Why people are trying to use some different language for the same thing as PHP can do and actually was designed for? So, nometter what is the size of your project you SHOULD use PHP as your template engine. You SHOULD separate code from templates, but you can use the same old PHP for both. Just put your templates in separate folder and include them from your PHP code.