/[cvs]/nfo/php/libs/com.newsblob.phphtmllib/examples/widget100.php
ViewVC logotype

Contents of /nfo/php/libs/com.newsblob.phphtmllib/examples/widget100.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Sat Feb 22 21:07:22 2003 UTC (21 years, 4 months ago) by jonen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
+ updated whole lib to version 2.2.1 (new FormProcessing since 2.2.0!)

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 ?>

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed