Quote:
Originally Posted by Sexgenoten
Thats funny. Im making an TGP site with, for the first time for me, a mysql backend. I usually use postgresql.
Personally, i have abandoned the smarty template engine. As php is in essence a template language, i've switched to a very simplistic way of creating my own template.
Create a .html file and make your own template vars with {} around them.
In php use preg_replace() to replace those template vars and in the end echo the master template file. In essence, you do the same as smarty but without the overhead.
I have a few projects in the making an a few that need some desperate overhauling ;)
|
The reason I'm even trying smarty was because some programming employers ask for it. But I agree with you and I was originally thinking of making it the way your saying. Though I'll always be keeping the original images so that I can edit them again later if needed - change thumbnail size or whatever. I also like the idea of having the .html extension. But you'll have to store pretty much everything in the database if you want to edit the file down the road, titles, keywords, headers, etc.
Hmm, maybe I'll just go back to my original idea and not use smarty. I want to see how they do the caching though, want to learn a bit more about that.