note 25503 rejected from language.oop by jmcastagnetto

From: Date: Thu, 26 Sep 2002 05:04:07 +0000
Subject: note 25503 rejected from language.oop by jmcastagnetto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-37262@lists.php.net to get a copy of this message
If anybody could help, I haven't been able to figure this out.. #Keywords class Keywords { var $sKeywords; function SetKeywords($nKeywords){ $this->sKeywords = $nKeywords; } function DispKeywords(){ echo "<meta name=\"keywords\" content=\"".$this->sKeywords."\">"; } } #Title class Title { var $sTitle; function SetTitle($nTitle){ $this->sTitle = $nTitle; } function DispTitle(){ echo "<title>Tnpmx (v7) : ".$this->sTitle."</title>"; } } #Define Class Variables $title = new Title(); $keywords = new Keywords(); #Display Body of Page { #Common Header function cHeader(){ echo "<html>\n<head>\n"; $title->DispTitle(); $keywords->DispKeywords(); @DispStyle(); echo "</head>\n<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n"; @mTop();@mLeft(); } I am trying to have it where I can just do this in each page: <?php include_once('includes/global.php'); $title -> SetTitle("Index"); $keywords -> SetKeywords("Blah"); cHeader();?> Blah <?php cFooter();?>

« previous php.notes (#37262) next »