ja mam tak folder główny
index.php
news.php
login.php
w templates mam
index.tpl
news.tpl
login.tpl
i teraz jest tak że cała struktura wczytuje się do index.tpl po przez include
czyli ładuje się do indexu tpl dodatkowo news.tpl oraz login.tpl. Dodam że na miliard procent ścieżki są dobre bo o ile w przypadku news.tpl nic się nie wczytuje to w login.tpl wczytuje się formularz do logowania ale nie działa

i dajmy na to jeżeli usune z news.tpl pętle i dam samą tabelkę newsa to ją wyświetli normalnie ^^ Podam jeszcze może kod dokładnie
index.php - folder główny
<?php
require('libs/Smarty.class.php');
require('cfg.php');
$smarty = new Smarty;
$smarty->display('index.tpl');
?>
index.tpl - folder templates
<!doctype html public "-//w3c//dtd html 4.01 transitional//en">
<meta http-equiv="content-type" content="text/html; charset=utf-8"> <meta name="generator" content="pspad editor, www.pspad.com"> <link rel="stylesheet" type="text/css" href="templates/style.css" /> <div id="login">{include file="login.tpl"}
</div> <div style="padding-left: 35px;"> <table cellspacing="0" cellpadding="0"><tr> <td><a href="index.php?id=news"><img border="0" src="templates/images/aktualnosci.jpg"></a></td><td><img border="0" src="templates/images/kreska.jpg"></td> <td><a href="index.php?id=multimedia"><img border="0" src="templates/images/multimedia.jpg"></a></td><td><img border="0" src="templates/images/kreska.jpg"></td> <td><a href="#"><img border="0" src="templates/images/download.jpg"></a></td><td><img border="0" src="templates/images/kreska.jpg"></td> <td><a href="#"><img border="0" src="templates/images/artykuly.jpg"></a></td><td><img border="0" src="templates/images/kreska.jpg"></td> <td><a href="#"><img border="0" src="templates/images/forum.jpg"></a></td><td><img border="0" src="templates/images/kreska.jpg"></td> <td><a href="#"><img border="0" src="templates/images/faq.jpg"></a></td><td><img border="0" src="templates/images/kreska.jpg"></td> <td><a href="#"><img border="0" src="templates/images/kontakt.jpg"></a></td>
{include file="news.tpl"}
news.php - folder główny
<?php
require('cfg.php');
$smarty = new Smarty;
$result = mysql_query("SELECT id, title, author, text, img, date, commnets FROM news ORDER BY id ASC") or
die("Niepoprawne zapytanie MySQL");
{
$tablica[] = $news;
}
$smarty->assign('result',$tablica);
$smarty->display('news.tpl');
?>
już mam ....................... Wystarczyło zamienić {include file=""} na {include_php file=""}