Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; DreamweaverTemplate has a deprecated constructor in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 35

Warning: Illegal string offset 'locked_0' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'editable_doctitle' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'locked_1' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'editable_head' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Cannot assign an empty string to a string offset in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'locked_2' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'editable_HeadRegion1' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Cannot assign an empty string to a string offset in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'locked_3' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'editable_HeadRegion2' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Cannot assign an empty string to a string offset in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'locked_4' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'editable_HeadRegion3' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Cannot assign an empty string to a string offset in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'locked_5' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'editable_BodyRegion1' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'locked_6' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'editable_BodyRegion2' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'locked_7' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'editable_BodyRegion3' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'locked_8' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'editable_BodyRegion4' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'locked_9' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'editable_BodyRegion5' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'locked_10' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'editable_BodyRegion6' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114

Warning: Illegal string offset 'locked_11' in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 114
Test DreamweaverTemplate Class

This is a test of the DreamweaverTemplate class, which was designed to help parse standard Dreamweaver templates. This is to ease their use in CMS systems. It is a PHP class that you instantiate with a given instance, based upon a template.

This allows you to create an empty "template" that is placed in the appropriate place in the hierarchy of a CMS system. You can then use your theme files to parse the template, and output the appropriate HTTP stuff.

The following form gives you access to all the editable fields in the demo file. If you change any of them, and hit "Submit," you will see the output of the file, with your changes incorporated into the appropriate editable regions.

View the empty template file (Do a "View Source")

Download the source

By the way, the source has an eval() in it, but I don't have that enabled in this demo. What? You think I'm THAT dumb?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 189

Warning: reset() expects parameter 1 to be array, string given in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 191

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 192

Warning: Variable passed to each() is not an array or object in /home/littlegreen/public_html/cmarshall.com/MySoftware/DreamweaverTemplate/DreamweaverTemplate.php on line 192

NO EDITABLE REGIONS