Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [smarty] Instalacja
Bartollo
post 22.09.2007, 10:26:39
Post #1





Grupa: Zarejestrowani
Postów: 2
Pomógł: 0
Dołączył: 31.08.2007

Ostrzeżenie: (0%)
-----


Zainstalowałem sobie smarty ale nie działa mi on poprawnie Wyskakuje taki błąd:

Warning: Smarty error: unable to read resource: "index.tpl" in d:\usr\krasnal\www\90\smarty\libs\Smarty.class.php on line 1095



index.php:
Kod
<?php

// load Smarty library
require('d:/usr/krasnal/www/90/smarty/libs/Smarty.class.php');

$smarty = new Smarty;

$smarty->template_dir = 'd:/usr/krasnal/www/90/templates';
$smarty->config_dir = 'd:/usr/krasnal/www/90/config';
$smarty->cache_dir = 'd:/usr/krasnal/www//cache';
$smarty->compile_dir = 'd:/usr/krasnal/www//templates_c';

$smarty->assign('name','fish boy!');

$smarty->display('index.tpl');
?>


index.tpl:
Kod
<html>
<body>
Hello, {$name}!
</body>
</html>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 13.08.2025 - 23:06