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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Thu Jan 30 03:29:43 2003 UTC (21 years, 5 months ago) by jonen
Branch: MAIN
Branch point for: no_vendor_tag
Initial revision

1 jonen 1.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