I am making this site
www.bendthebracket.com
I made the template using photoshop and html and so far the only php I have on there is a simple blog i coded and a login script. how do i template the site sort of like how phpbb is templated.
for those not familiar with it. the php files call a *.tpl file which has the html template within it. how do i do that?
hi..
can you not just use the include() or require() functions?
also, look into the articles section here. they have a few articles about templates and what you are wanting to do.
rish1103 wrote:I am making this site www.bendthebracket.com I made the template using photoshop and html and so far the only php I have on there is a simple blog i coded and a login script. how do i template the site sort of like how phpbb is templated. for those not familiar with it. the php files call a *.tpl file which has the html template within it. how do i do that?
It's very complicated, you would have to code the template parser yourself. I would recommend not trying to do it, because it takes a lot of time and frustration (I'm working on one right now, trust me, it's pretty hard).
I recommend that you use something someone's made already.
Smarty is by far the most popular templating system. It's simple and extensible (but unfortunately, doesn't work too well with any editors I've seen yet).
Mark