Published April 29th, 2003 by Jim O'Halloran
Working with PEAR::DB and Smarty
ONLamp.com has an interesting article on using PEAR::DB and Smarty (template engine) together to create web apps in PHP. Interesting stuff…
By simple trial and error, developing new versions of my own libraries and reusing other libraries for my projects, I have found a better way to integrate a database-backed application with a powerful template engine.
I’m obviously talking about PEAR::DB and Smarty here, and I will show throughout this article my experiences and best practices in integrating these two amazing libraries. You will end up with a really nice setup, having an excellent separation between business logic and template logic.