diff options
-rw-r--r-- | classes/helpers/CinisisDisplayHelper.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/classes/helpers/CinisisDisplayHelper.php b/classes/helpers/CinisisDisplayHelper.php index 72e51b2..90e0069 100644 --- a/classes/helpers/CinisisDisplayHelper.php +++ b/classes/helpers/CinisisDisplayHelper.php @@ -11,7 +11,7 @@ class CinisisDisplayHelper { * Page title; */ function __construct($title) { - $this->header(); + $this->header($title); $this->title($title); } @@ -27,12 +27,16 @@ class CinisisDisplayHelper { /** * Draws the page header. + * + * @param $title + * Page title; */ - function header() { + function header($title) { echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'; echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">'; echo '<head>'; echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />'; + echo '<title>'. $title .'</title>'; echo '</head>'; echo '<body>'; } |