Other Uses For Smarty
Hopefully this article has given you more of an idea of how you can put Smarty to work. This will hopefully help you keep your code tidier (e.g. not storing clumsy email templates in your PHP code), and make it easier to manage.
There are probably many more uses for Smarty other than those listed here. This may even sound a little crazy (especially to “non template purists” out there), but I have written a Smarty template generator, which uses Smarty templates to hold the template templates! Sounds confusing. Well, it is!
- Download a PDF version of this article
- Put your PHP knowledge to the test with our online and iPad/iPhone quizzes
- View or post comments for this article
- Browse similar articles by tag: PHP, Smarty, Templates
- Read related article: