diff options
author | Silvio <silvio@devlet.com.br> | 2010-08-16 18:24:12 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2010-08-16 18:24:12 -0300 |
commit | f75585111c1e7eb02ef2663dfdac8b19c08e36c6 (patch) | |
tree | 3ad95bc295e0929abf09c74ec8731baf862306bf /classes | |
parent | a2b6848d06ac7ea99f72b8d9841ef8b4dc2e2ecb (diff) | |
download | cinisis-f75585111c1e7eb02ef2663dfdac8b19c08e36c6.tar.gz cinisis-f75585111c1e7eb02ef2663dfdac8b19c08e36c6.tar.bz2 |
Setting page title at header() from CinisisDisplayHelper
Diffstat (limited to 'classes')
-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>'; } |