We have a main page template. It is here for clarity (index.tpl)
There is an index.php
<?php header('Content-type: text/html; charset=utf-8'); $f1="index.tpl"; if (!file_exists($f1)) { header('Content-type: text/html; charset=utf-8'); echo "<center> <br><br> <h1>нет шаблона!</h1> </center>"; exit; } $f = fopen($f1,"r"); $site = fread($f, filesize ($f1)); fclose ($f); require_once "news.php"; $site=str_replace('{news}',$news,$site); echo "{$site}"; exit; ?>
How to organize the menu - go to the links. So that the template remains the same, but the contents change? + It would be nice to add speakers, the ability to add menu items and therefore new content. How many int did not dig - it is incomprehensibly written everywhere.