|
Smarty
Hi,
ich versuche mit SMARTY was zu unternemen, dafür habe ich Zwei scripts
geschrieben nur als kleine Beipiel.. aber bekomme ich nur dieser Fehlermeldung... ob jemand mir des erkleren könnte..?
danke
erste script:
(index.php)
<?
require('Smarty/libs/Smarty.class.php');
$smarty = new Smarty;
echo"$smarty"; //nur zu testen
$smarty->assign('name', 'Rawi');
$smarty->assign('address', 'Meunschen');
$smarty->display('index.tpl');
?>
zwite script
(index.tpl)
<html>
<head>
<title>User Info</title>
</head>
<body>
User Information:<p>
Name: {$name}<br>
Address: {$address}<br>
</body>
</html>
Ergebniss auf dem Browser:
Object
Warning: Smarty error: unable to read resource: "index.tpl" in d:programmeapache groupapachehtdocssmartySmartylibsSmarty.class.php on line 1083
|