Reputation: 6386
i have a backend and im sick of copying the css, and design layout each time i create a new 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
Upvotes: 0
Views: 3243
Reputation: 2631
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.
Upvotes: 1