Say you have templates and read the content of the template file from the xyz.php based on the requirement and build on the html of the pages.