Allow Dreamweaver MX to Open phtml files in Design View

The Zend framework names View files with a .phtml extension by default. E.g. “application/views/scripts/index/index.phtml
As these files are probably the most likely ones that will be opened in a WYSIWYG editor, it is worth sharing a link to a short step-by-step guide on how to make dreamweaver MX open phtml files in ‘Design View’.

For those using the Zend Framework

If you prefer to use other file extensions for views other than the default .phtml in the Zend framework, you can tell the view renderer which suffix you are using. See how to do this by following the example in the Zend Framework documentation on how to ‘modify settings of the ViewRenderer’ (7.8.4.3. ViewRenderer).

However, many believe that life becomes easier if you stick with conventions as much as possible.

Update July  2009 - Making  .ini’s and .htaccess files searchable by DW

I also think its worth noting that, while you configuring Dreamweaver to work with .phtml files, you may as well tell it to include files of type .ini and .htaccess within its Find and Replace searches.

This is done in a similar way.

One Response to “Allow Dreamweaver MX to Open phtml files in Design View”

  1. » specifying file types that Dreamweaver should search - Eat My Business Says:

    […] expected by Zend Framework in View Scripts.  So, while you are doing that you might as well configure Dreamweaver to work with .phtml files. Its roughly the same […]

Leave a Reply