Code:
Warning: Smarty error: unable to read resource: "templatexy.tpl" in /home/www/url.at/smarty/Smarty.class.php on line 1083
meine verzeichnisstruktur ist folgende:
index.php (ruft smarty auf)
dir templates
dir templates_c
dir configs
dir smarty
enthält:
dir core
dir plugins
Config_File.class
debug.tpl
Smarty.class.php
Smarty_Compiler.class.php
tja...
und nachdems mit meinem cms nicht funktioniert, hab ich mir gedacht, probier ichs doch einfach mal ganz einfach mit einem testfile:
PHP-Code:
define('SMARTY_DIR', '/home/www/url.at/smarty/');
require(SMARTY_DIR.'Smarty.class.php');
$smarty=new Smarty;
$smarty->assign("einleitung","Ein Testtext.");
$smarty->template_dir='/home/www/url.at/templates/'; //selbst damit funktionierts nicht
$smarty->display('templatexy.tpl');
tja.. und jetzt sitz ich schon seit 3 1/2 stunden davor und ich komm nicht drauf.
PHP-Code:
echo $smarty->template_dir;
gibt mir auch das richtige template dir aus.
ich habs mit absoluten und relativen pfaden, mit "file:/home/www/url.at/templates/", mit slash/ohne slash probiert
und ich bekomm immer und immer wieder dieselbe fehlermeldung.
lg, ingo