- Code: Select all
Warning: fetch(templates_c\%%117\%%1172603085\index.tpl.php) [function.fetch]: failed to open stream: No such file or directory in G:\wampp2\htdocs\neu\smarty\Smarty.class.php on line 1158
Warning: fetch() [function.include]: Failed opening 'templates_c\%%117\%%1172603085\index.tpl.php' for inclusion (include_path='\wampp2\php\pear\') in G:\wampp2\htdocs\neu\smarty\Smarty.class.php on line 1158
Meine php.ini sieht so aus:
- Code: Select all
;;;;;;;;;;;;;;;;;;;;;;;;;
; Paths and Directories ;
;;;;;;;;;;;;;;;;;;;;;;;;;
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
; include_path = ".;c:\"
include_path = ".;G:\wampp2\php\pear\;G:\wampp2\smarty250\"
Meine index.php so:
- Code: Select all
<?
include("include.php");
define('SMARTY_DIR','smarty/');
require(SMARTY_DIR.'Smarty.class.php');
error_reporting(E_ALL);
$abfragecss = mysql_query("SELECT * FROM css");
$row = mysql_fetch_array($abfragecss);
$css = $row['link'];
$thema = $row['name'];
$smarty = new Smarty;
$smarty->assign('css', $css);
$smarty->assign('thema',$thema);
$smarty->display('index.tpl'); ?>
Die index.tpl so:
- Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Willkommen zum Webauftritt der Stufe 13 des Gymnasium xxx</title>
{$css}
</head>
<body class="index">
<p class="indeximg"> <img class="index" src="images/{$thema}/index.jpg" alt="Abikultur - {$thema}"/></p>
<div class="indexvalid"><a href="http://validator.w3.org/check?uri=http%3A%2F%2F62.227.134.133%2Fneu%2Findex.php"
><img src="images/valid/xthml10.jpg" class="indexvalid" alt="Diese Seite ist XHTML 1.0 strict" width="88" height="31"/></a>
<a href="http://jigsaw.w3.org/css-validator/validator?uri=http://62.227.134.133/neu/css/Mexiko.css">
<img src="images/valid/cssvalid.gif" class="indexvalid" width="88" height="31" alt="Die Seite ist CSS valid"/>
</a></div>
</body>
</html>
Wo liegt hier mein Fehler?
Ich hab im htdocs vrzeichnis 5 Verzeichnisse:
- Code: Select all
templates (da liegt meine index.tpl)
templates_c (keine Ahnung)
cache (ka)
configs(leer)
smarty(Das entpackte smarty halt)
Wer kann mir helfen?