I am using phpmyfaq 1.3.9, and I would like to add some extra variables to be displayed in the index.html template.
I have modified the index.php as follows:
setting the main variables:
Code: Select all
$tpl->processTemplate ("index", array(
"writeTitle" => $title,
"metaDescription" => $metaDescription,
"metaKeywords" => $metaKeywords,
"metaPublisher" => $metaPublisher,
"metaLanguage" => $metaLanguage,
...etc
Code: Select all
"showDate" => $showdate,
"showTime" => $showtime);
In the INDEX.HTML file, whenever I wanted these variables to be displayed, I have placed them in curley braces: eg {showTime}
However, when I go to the home page, I get the following error:
Code: Select all
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/html/kb/faq/index.php on line 141
Any ideas?