Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [smarty] Instalacja
Bartollo
post
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
tehn
post
Post #2





Grupa: Zarejestrowani
Postów: 63
Pomógł: 0
Dołączył: 8.09.2007

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


Cytat(Bartollo @ 22.09.2007, 11:26:39 ) *
$smarty->cache_dir = 'd:/usr/krasnal/www//cache';
$smarty->compile_dir = 'd:/usr/krasnal/www//templates_c';


napewno tutaj nie powienieneś mieć tych dwóch //
Go to the top of the page
+Quote Post
Bartollo
post
Post #3





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

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


dzięki już poprawiłem (przeoczenie (IMG:http://forum.php.pl/style_emoticons/default/wstydnis.gif) ) ale to nadal nie rozwiązuje mojego problemu
Go to the top of the page
+Quote Post

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

 



RSS Aktualny czas: 23.08.2025 - 19:57