Hallo!
Muss ich die eigentlich so nennen, oder darf die Datei auch ne andere Endung haben?
die main.tpl wird jetzt auch aufgerufen, aber die Includes scheitern
<td>{include_php file="content/navi2.php"}</td>
<td>{include_php file=$default}</td>
<td>{include_php file="content/subcontent.php"}</td>$default war ein versuch und setzt sich aus der php_self und dem contentpfad zusammen.
was genau gibt "echo $default;" aus?
Der Fehler lautet:
Warning: Smarty error: 'file: /smarty_temp/main.php/content/default.php' is not readable in C:\wampp2\php\pear\Smarty\libs\Smarty.class.php on line 1042Warning: _smarty_include_php() [function.include]: Failed opening '' for inclusion (include_path='\wampp2\php\pear') in C:\wampp2\php\pear\Smarty\libs\Smarty.class.php on line 1820
Also da stimmt was mit Deinen Pfaden nicht. Gucke Dir mal in phpinfo() den include-path an, und verwende mal manuell die absoluten Pfade, also "C:/wampp2...."
Grüße
Andreas