Hallo zusammen
ich habe einen fehler mit samrty und komme nicht drauf.
Warning: Smarty error: unable to read resource: "index.tpl" in D:\xampp\Smarty\libs\Smarty.class.php on line 1095
Habe schon ein paar artikel gelesen - passt aber nichts.
index.php
<?
// load Smarty library
require("D:/xampp/Smarty/libs/Smarty.class.php");
$smarty = new Smarty;
$smarty->template_dir = trim("templates");
$smarty->config_dir = trim("configs");
$smarty->cache_dir = trim("cache");
$smarty->compile_dir = trim("templates_c");
$smarty->assign("name","Babe");
$smarty->assign("meldung","es klappt!");
echo $smarty->template_exists("index.tbl");
$smarty->display("index.tpl");
?>
Der eintrag im php.ini :
include_path = ".;D:\xampp\Smarty\libs"
include_path = ".;D:\xampp\php\pear"
template.tbl
<html>
<body>
Hallo {$name}, {$meldung}
</body>
</html>
ich hoffe es hat jemand ne lösung.
Grüsse Merl