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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.