A master page template is essential to give a consistent look and feel to any website having multiple pages. It is quite easy to create a master page template in PHP using Dreamweaver. Let’s have a look at the steps that you need to follow.
- Install PHP, Adobe Dreamweaver and XAMPP on your system.
- Go to XAMPP control panel and a small window will appear on your screen.
- Start the Apache and Mysql services on the control panel.
- Minimize the panel window and next open Macromedia Dreamweaver 8.
- A new window will get open, and you can see another small window on your screen.
- Choose PHP from the list of file types that you can create using Dreamweaver.
- A file Untitled-1will open on your screen.
- Type the words Hello World on the blank page and select it.
- Align it to the center by using the tab under properties section at the bottom.
- Now go to Site in the menu bar and click on New Site.
- A new window will appear as Site Definition for Unnamed Site1.
- Replace the default name by samplephp and click on the next button.
- Click on the second radio button to agree to use a server technology.
- Choose PHPMySQL from the drop down list and click on the NEXT button.
- Click on the folder icon and create a new folder samplephp under htdocs folder within xampp.
- Create another folder Templates and click on the next button.
- Keep on clicking next until the done button appears.
- Go to File menu and Save the page as dwt under the templates folder.
- Your Master Page template is ready!