Ich kriege hier bei bplaced irgentwie keine Templateklasse zum kaufen. Bin da auch ein ziemlicher Neuling drin. Die Fehlermeldungen sind:
Warning: include(template.class.php) [function.include]: failed to open stream: No such file or directory in /users/soi/www/test.php on line 2
Warning: include() [function.include]: Failed opening 'template.class.php' for inclusion (include_path='.:/etc/php/lib') in /users/soi/www/test.php on line 2
Fatal error: Class 'Template' not found in /users/soi/www/test.php on line 3
Folgender Code hier aus dem Forum der eigl. funktionieren muss:
<?php
include("template.class.php");
$tpl = new Template(); // Laden
$tpl->load("news.tpl"); // Laden des tpl's
while ($row = mysql_fetch_array($res))
{
$tpl->assign("titel", $row['title']);
$tpl->assign("text", $row['text']);
}
$tpl->out(); // Ausgabe
?>
hier noch das template (eigl unwichtig):
[quote]
{titel}{$title} {$text}
Woran kann das liegen? hier auch nochmal der Link: soi.bplaced.net/test.php
Gruß
Soi