| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* This example illustrates the BaseWidget class. |
| 5 |
* The Base Widget Class is the base php class |
| 6 |
* which defines the standard api for all child |
| 7 |
* 'widgets'. |
| 8 |
* |
| 9 |
* |
| 10 |
* $Id: widget100.php,v 1.2 2002/09/25 01:12:35 hemna Exp $ |
| 11 |
* |
| 12 |
* @author Walter A. Boring IV <waboring@buildabetterweb.com> |
| 13 |
* @package phpHtmlLib |
| 14 |
* @subpackage examples |
| 15 |
* @version 2.0 |
| 16 |
* |
| 17 |
*/ |
| 18 |
|
| 19 |
/** |
| 20 |
* Include the phphtmllib libraries |
| 21 |
* |
| 22 |
*/ |
| 23 |
include_once("includes.inc"); |
| 24 |
|
| 25 |
|
| 26 |
//create the page object |
| 27 |
$page = new HTMLPageClass("First example script", XHTML_TRANSITIONAL); |
| 28 |
|
| 29 |
//enable output debugging. |
| 30 |
$page->set_text_debug( $_GET["debug"] ); |
| 31 |
|
| 32 |
|
| 33 |
//this will render the entire page |
| 34 |
//with the content you have added |
| 35 |
//wrapped inside all the required |
| 36 |
//elements for a complete HTML/XHTML page. |
| 37 |
//NOTE: all the objects in phphtmllib have |
| 38 |
// the render() method. So you can call |
| 39 |
// render on any phphtmlib object. |
| 40 |
print $page->render(); |
| 41 |
?> |