i have a backend and im sick of copying the css, and design layout each time i create a ne开发者_Python百科w page. how can i easily keep a master design and every new page i create i can write whatever i want and it will use the master design and tabs that ive set?
i dont want to get into smarty or anything related to that because its gonna take time to learn it. is there another alternative preferably something easy and fast?
thanks
Using only PHP you could do something as simple as:
inlucude 'top_with_css_includes_and_all.php';
// do your page stuff here
include 'footer.php';
I suggest that you use a light weight framework if you find Smarty or other similar frameworks to cumbersome.
You could have a look at Flourish specifically the fTemplate class.
精彩评论