View Single Post
Old 01-19-2011, 08:44 PM  
Sexgenoten
Registered User
 
Industry Role:
Join Date: Dec 2010
Posts: 85
Quote:
Originally Posted by DirtyRider View Post
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.
No u dont. You can create your .html files and put them in your include directory.
Then use $file = file_get_contents ( 'layout/mylayout.html', FILE_USE_INCLUDE_PATH );

They $file var now contains your html file and with a simple preg_replace you can populate it with the desired dynamic data.

Just make one master html file and throw the rest of the data in it.

I have never tested smarty's cache, so i dont know if it is very usefull. Especially when your pages are very dynamic.
Sexgenoten is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook