psf
index.php
1 <?php
2 
3 # Example webpage created with psf
4 require("psf/psf.php");
5 
6 $wp = new HtmlPage("Example web page");
7 $wp->AppendObject(new GitHub_Ribbon("benapetr/psf/blob/master/examples/website"));
8 
9 # Create a line of text
10 $wp->AppendParagraph("This is an example web page");
11 
12 # Create a html table
13 
14 $table = new HtmlTable();
15 $table->Headers = [ "Sample", "header" ];
16 $table->AppendRow([ "1", "2" ]);
17 # Insert it to web page
18 $wp->AppendObject($table);
19 
20 #print it
21 $wp->PrintHtml();
22 
23 
Represent a single Html page.
Definition: htmlpage.php:32