Mam taką funkcję w pliku function.php do wczytywania zawartości pliku:
<?
function ReadTemplate($name) {
return $mainTemplate;
}
function Menu() {
}
?>
index.php
<?
$title = "Tytul";
include('function.php');
$mainTemplate = ReadTemplate("template/blue/index.html");
$mainTemplate = str_replace("<!--TITLE-->", $title, $mainTemplate); $mainTemplate = str_replace("<!--MENU-->", Menu
(), $mainTemplate); ?>
index.html
<table border="0" width="100%"> <td width="100%" align="center"><!--TOP--></td>
<table border="0" width="100%"> <td width="20%" align="center"><!--MENU--></td> <td width="60%" align="center"></td> <td width="20%" align="center"></td>
Problem jest taki że napis w funkcji Menu nie pojawia się w tej tabelce tylko zupełnie na górze strony - jak to rozwiącać, proszę o pomoc.
Z góry dziękuje!