Значит так когда я подключил к index.php main.tpl который находиться в templates/default/main.tpl наработают стили. index.php <?php $tpl = file_get_contents("templates/default/main.tpl"); echo $tpl; ?> main.tpl <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Тест</title> <link rel="stylesheet" type="text/css" href="css/style.css"> </head> <body> <div class="test"> <div class="menu"> <a href="/" id="btn">Главная</a> <a href="/" id="btn">Форум</a> </div> </div> </body> </html> style.css #btn{ text-decoration: none; color: black; font-size: 30px; } Помогите, как решить? +rep в профиль)
Сделай в index: <? require "templates/default/main.tpl"; ?> или <? $tpl = file_get_contents("/templates/default/main.tpl"); echo $tpl; ?>