Description
A HTML page is created by instantiating a new
HTML_Page2 object. While you may
pass an array of attributes to the constructor, it isn't required
since the default settings are fairly intuitive.
Default page settings
If you don't like these settings, you can either pass an array
of settings to the
constructor
or use setter methods such as
setDoctype(),
setMimeEncoding()
or
setCharset()
.
Example 43-1. Creating a HTML page <?php
require_once 'HTML/Page2.php';
$page = new HTML_Page2();
$page->setTitle('My first HTML page');
$page->addBodyContent('<h1>Hello!</h1>');
$page->display();
?> |
|