Quote:
Originally Posted by DirtyRider
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.