Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
A Database Templating Engine
May 12, 2004 @ 11:56:48

New from DevShed.com today is an article talking about the creation of a database templating engine.

Have you ever been annoyed by template engines that force you to keep your templates in flat files? Ever feel like that Content Management System you just created isn't as dynamic as you originally thought? If you have ever felt like this, you may benefit from having your templates in a database.

The idea in this article makes for a pretty simple, low-level templating system, but it's nice and light and could be useful for a smaller site. They start out with an example of the final product, then begin in on how it's made. With the database structure provided, a few simple functions, and a description of what each does, you're home free. With a little bit of effort, anyone can take this simple header/footer templating system and turn it onto something much, much more powerful...

tagged:

Link:


Trending Topics: