Skip to main content
Known Participant
February 13, 2018
Answered

Saving a Dreamweaver template

  • February 13, 2018
  • 1 reply
  • 385 views

When I save a .php page as a template, I always get the extension *.dwt.php. Is this correct or do I delete the .php at the end of page name? I am using Dreamweaver 2018 and on a Windows 10 Computer.

    This topic has been closed for replies.
    Correct answer Nancy OShea

    No.  If your template contains PHP code, it should be named with the appropriate extension -- dwt for template and php for the code base.

    Nancy

    1 reply

    Nancy OShea
    Community Expert
    Community Expert
    February 13, 2018

    Yes.  That is the expected file extension for a proprietary Dreamweaver Template with PHP code.   An ordinary HTML template would be just .dwt.

    Nancy

    Nancy O'Shea— Product User & Community Expert
    Known Participant
    February 13, 2018

    Thanks for getting back so quick. Should I delete the .php at the end of the name or leave it that way. Or, should I create the template in an html page and then use that template on my php pages? Always one more question

    Nancy OShea
    Community Expert
    Nancy OSheaCommunity ExpertCorrect answer
    Community Expert
    February 13, 2018

    No.  If your template contains PHP code, it should be named with the appropriate extension -- dwt for template and php for the code base.

    Nancy

    Nancy O'Shea— Product User & Community Expert