PDA

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


Salazar
23 Jan 2006, 17:40
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
23 Jan 2006, 17:48
http://www.devshed.com/c/a/PHP/Building-a-Template-Parser-Class-with-PHP-Part-I/

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

harmor19
23 Jan 2006, 18:10
There's two options, database and flat-file.

Edit:
Nevermind, I got the wrong tutorial.