Reputation: 146
I've worked worked with visual studio for a while and one thing which impressed me was the master pages. Is there anything similar to it in PHP or can it be achieved using simple HTML and CSS?
Upvotes: 0
Views: 568
Reputation: 395
Not exactly a master page, but there are template engines like smarty that provide similar functionality. You can create template files with content place-holders that can be filled by php. Smarty also provides extra tools that can provide a more complex functionality for your templates.
But with php, templates are only an option. Every output of the script goes into the browser. Template systems only help in separating the logic from the output.
Upvotes: 1