Example #1
0
 public function __construct()
 {
     try {
         if (!Page::$html_set || !Page::$head_set || !Page::$body_set) {
             throw new PageException("<b>Table class exception.</b><br />Either &lt;html&gt; or &lt;head&gt; or &lt;body&gt; is not set.</b><br />\n\t\t\t\t\tAll these tags need to be set in this order to generate valid html forms.");
         }
     } catch (PageException $e) {
         echo $e->getMessage();
     }
     self::$table_set = TRUE;
 }