function __construct() { try { if (!Page::getHtml_set()) { throw new PageException("<b>Head class exception</b><br>Html tag is not yet defined.</b><br> \n\t Please define <html> tag first."); } } catch (PageException $e) { echo $e->getMessage(); } Page::$head_set = TRUE; }
public function __construct() { try { if (!Page::getHtml_set()) { throw new WebException("<b>Body class exception</b><br />Html tag is not yet defined.</b><br>\n\t\t\t\t Please define <html> tag first."); } if (!Page::getHead_set()) { throw new WebException("<b>Body class exception</b><br />Head tag is not yet defined.</b><br>\n\t\t\t\t Please define <head> tag first."); } } catch (WebException $e) { echo $e->getMessage(); } Page::$body_set = TRUE; }