Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

* fixed notice by passing an array to constructor

git-svn-id: http://svn.php.net/repository/pear/packages/HTML_Page/trunk@145452 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
commit 03b1cc23217bc4a1f7d63d1fbc8a537629177d7b 1 parent a792bc0
Klaus Guenther authored
Showing with 5 additions and 5 deletions.
  1. +3 −3 examples/Page_NoDoctype.php
  2. +2 −2 examples/Page_Simple.php
View
6 examples/Page_NoDoctype.php
@@ -27,12 +27,12 @@
// -> language = en
// -> cache = false
-$p = new HTML_Page('doctype="none"');
+$p = new HTML_Page(array('doctype'=>'none'));
-// "simple" Page title defaults to "New HTML Page"
+// "simple" Page title defaults to "New Page"
$p->addBodyContent("<h1>Headline</h1>");
$p->addBodyContent("<p>Some text</p>");
$p->display ();
-?>
+?>
View
4 examples/Page_Simple.php
@@ -29,9 +29,9 @@
$p = new HTML_Page();
-// Page title defaults to "New XHTML 1.0 Page"
+// Page title defaults to "New XHTML 1.0 Transitional Compliant Page"
$p->addBodyContent('<h1>Headline</h1>');
$p->addBodyContent('<p>Copyright 2003 The PHP Group</p>');
$p->display();
-?>
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.