previousHTML_Page2 (Previous) (Next) ヘッダnext

View this page in Last updated: Sun, 21 Jun 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

作成

作成 – 新しいページの作成

説明

html ページを作成するには、新しい html_page2 オブジェクトのインスタンスを作成します。 属性の配列をコンストラクタに渡すこともできますが、必須ではありません。 デフォルトの設定は十分直感的です。

  • Unix の改行 (\n)

  • 文字セットは UTF-8

  • MIME 型は text/html

  • doctype は XHTML 1.0 Transitional

  • 言語は英語

これらの設定が気に入らない場合は、設定の配列を コンストラクタ に渡すか、あるいは setDoctype()setMimeEncoding() あるいは setCharset() のような設定用メソッドを使用します。

HTML ページの作成

<?php
require_once 'HTML/Page2.php';
$page = new HTML_Page2();
$page->setTitle('My first HTML page');
$page->addBodyContent('<h1>Hello!</h1>');
$page->display();
?>
previousHTML_Page2 (Previous) (Next) ヘッダnext

Download Documentation Last updated: Sun, 21 Jun 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.