PDA

View Full Version : How to create my own template engine?


Salazar
01-23-2006, 03:40 PM
Hey,

I love the template system of vbulletin! The thing is, I'd like to create a template based website similar to vb but I don't want to use some 3rd party template engine like Smarty. In other words: I want to code one my own.

Does anyone have a tutorial or hints? I'd really like to do this!

harmor19
01-23-2006, 03:48 PM
<a href="http://www.devshed.com/c/a/PHP/Building-a-Template-Parser-Class-with-PHP-Part-I/" target="_blank">http://www.devshed.com/c/a/PHP/Build...th-PHP-Part-I/</a>

Salazar
01-23-2006, 04:07 PM
Thanks but this one is not database driven. I'd prefer to save the templates in a DB (just like vbulletin).

harmor19
01-23-2006, 04:10 PM
There's two options, database and flat-file.

Edit:
Nevermind, I got the wrong tutorial.