Manage reusable code with the Snippets panel Dreamweaver and PHP


show more Managing reusable code with the Snippets panel provides you with in-depth training on Business. Taught by David Gassner as part of the Dreamweaver with PHP and MySQL show less
please wait ...

Managing reusable code with the Snippets panel

Dreamweaver CS5 offers another feature for managing your code, where you want to use the code over and over again. It's called the Snippets panel, and it's been a part of Dreamweaver for quite a while. For this exercise, I'll use the version of my site in the folder 03_managingcode\06_snippets. The Snippets folder is located in the same panel group as the Files panel. It's populated with some default snippets, including commenting, footers, form elements, and many others, but you can add your own snippets quite easily.

For this exercise, I'll start with the file footer.php that's in the _includes folder of my site. I'll look at the file in Code View in fullscreen and scroll down to the dateutil section. I'm going to take a few elements of this php code and make them into a reusable code snippet. I'll start with the PHP Include command up at the top. I'm going to move the code around a little bit to get the code ready to use in a code snippet, but I w...

Managing reusable code with the Snippets panel
Video duration: 3m 59s 4h 55m Intermediate Updated Jun 12, 2012

Viewers:

Managing reusable code with the Snippets panel provides you with in-depth training on Business. Taught by David Gassner as part of the Dreamweaver with PHP and MySQL

Subjects:
Business Developer Web
Software:
Dreamweaver
Author:
please wait ...