Webmastersite.net
Register Log In

$header->replace() function

Title $header->replace() function
Description please help
Message Text I have a customized page which was built several years ago, and i don't want to use the system function under Tempaltes -> Custom Pages. and it looks like the $header->replace('{MAINMETA}', 'something here'), is no longer worked.
require_once 'start.php';

$template = new template('a_customized_page.tpl');

$area = "Customized Page Title";
$headerinfo2 = "<meta name=\"keywords\" content=\"something keywords here\" /><meta name=\"description\" content=\"some description here.\" />";
$header->replace('{MAINMETA}', $headerinfo2); 

require 'end.php';
The output for the metatag is still the mainmeta. Any idea how to get it done?
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership mc19
Views 266 views. Averaging 0 views per day.
Similar Topics
Submission Date Aug 12, 2012 - 1:14 AM