PageFrame Demo

With this code:

$page = new UI_HTML_PageFrame; $page->setTitle( "Test" ); $page->addJavaScript( "./script.js" ); $page->addStylesheet( "./style.css" ); $page->addBody( "Hello World!" ); print( $page->build() );

you can build a HTML page frame code like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> <meta http-equiv="Content-Script-Type" content="text/javascript"/> <meta http-equiv="Content-Style-Type" content="text/css"/> <title>Test</title> <link rel="stylesheet" type="text/css" media="all" href="./style.css"/> <script type="text/javascript" src="./script.js"></script> </head> <body> Hello World! </body> </html>