Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [smarty] Smarty error: unable to read resource: "index.tpl"
smajster
post
Post #1





Grupa: Zarejestrowani
Postów: 26
Pomógł: 0
Dołączył: 28.04.2006

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


Właśnie zacząłem się uczyć smarty a tu pierwszy błąd i już nie mam pojęcia o co chodzi sadsmiley02.gif .
Stworzyłem dwa pliki:
index.php położony w C:\Program Files\WebServ\httpd\testy
  1. <?php
  2. // dla windows
  3. define('SMARTY_DIR', 'C:/Program Files/WebServ/httpd/libs/');
  4. require_once(SMARTY_DIR . 'Smarty.class.php');
  5.  
  6.  
  7.  
  8. $smarty = new Smarty();
  9.  
  10. $smarty->template_dir = 'C:/program files/webserv/httpd/testy/smarty/guestbook/templates/';
  11. $smarty->compile_dir = 'C:/program files/webserv/httpd/testy/smarty/guestbook/templates_c/';
  12. $smarty->config_dir = 'C:/program files/webserv/httpd/testy/smarty/guestbook/configs/';
  13. $smarty->cache_dir = 'C:/program files/webserv/httpd/testy/smarty/guestbook/cache/';
  14.  
  15. $smarty->assign('name','Ned');
  16.  
  17. $smarty->display('index.tpl');
  18. ?>


oraz index.tpl położony w: C:\Program Files\WebServ\httpd\testy\smarty\questbook\templates


{* Smarty *}

Hello, {$name}!


a kiedy uruchamiam index.php to wyskakuje mi błąd :
Warning: Smarty error: unable to read resource: "index.tpl" in C:\Program Files\WebServ\httpd\libs\Smarty.class.php on line 1088

Nie wiem o co chodzi.
Z góry dzięki za pomoc

Ten post edytował smajster 29.07.2006, 11:36:09
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 Aktualny czas: 20.08.2025 - 05:20