Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne][PHP]smarty
djjbenus
post 4.07.2012, 10:56:09
Post #1





Grupa: Zarejestrowani
Postów: 71
Pomógł: 0
Dołączył: 22.05.2010

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


witam,

na początek wrzucę kod, a następnie opisze problem.

  1. <?php
  2. //error_reporting(E_ALL|E_STRICT);
  3. require 'Smarty-3.1.11/libs/Smarty.class.php';
  4. $Smarty->assign('title', 'Przykład zastosowania Smarty');
  5. $Smarty->display('przyklad.tpl.htm');
  6. ?>


bo wrzuceniu tego w przeglądarkę wyrzuca mi taki błąd

Warning: require(): Unable to access Smarty-3.1.11/libs/Smarty.class.php in D:\httpd\_Piotrek\Smart\Smarty-3.1.11\przyklad.php on line 3 Call Stack: 0.0010 316312 1. {main}() D:\httpd\_Piotrek\Smart\Smarty-3.1.11\przyklad.php:0 Warning: require(Smarty-3.1.11/libs/Smarty.class.php): failed to open stream: No such file or directory in D:\httpd\_Piotrek\Smart\Smarty-3.1.11\przyklad.php on line 3 Call Stack: 0.0010 316312 1. {main}() D:\httpd\_Piotrek\Smart\Smarty-3.1.11\przyklad.php:0 Fatal error: require(): Failed opening required 'Smarty-3.1.11/libs/Smarty.class.php' (include_path='.;C:\xampp\php\PEAR;C:\xampp\php\PEAR\PHP') in D:\httpd\_Piotrek\Smart\Smarty-3.1.11\przyklad.php on line 3 Call Stack: 0.0010 316312 1. {main}() D:\httpd\_Piotrek\Smart\Smarty-3.1.11\przyklad.php:0

i nie bardzo wiem o co chodzi. Dopiero się uczę działać na smartach więc pomoc będzie mile widzana.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 4)
Crozin
post 4.07.2012, 10:58:13
Post #2





Grupa: Zarejestrowani
Postów: 6 476
Pomógł: 1306
Dołączył: 6.08.2006
Skąd: Kraków

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


Cytat
[...] failed to open stream: No such file or directory [...]
Co jest niby niezrozumiałego w tym komunikacie?
Go to the top of the page
+Quote Post
djjbenus
post 4.07.2012, 11:01:34
Post #3





Grupa: Zarejestrowani
Postów: 71
Pomógł: 0
Dołączył: 22.05.2010

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


Tyle że ten plik to właśnie ten co wrzucam w przeglądarkę a wszystko idzie z serwera.
Go to the top of the page
+Quote Post
Mephistofeles
post 4.07.2012, 12:16:26
Post #4





Grupa: Zarejestrowani
Postów: 1 182
Pomógł: 115
Dołączył: 4.03.2009
Skąd: Myszków

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


Proste. Masz plik D:\httpd\_Piotrek\Smart\Smarty-3.1.11\Smarty-3.1.11\libs\Smarty.class.php?
Go to the top of the page
+Quote Post
djjbenus
post 4.07.2012, 13:11:13
Post #5





Grupa: Zarejestrowani
Postów: 71
Pomógł: 0
Dołączył: 22.05.2010

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


Błąd został znaleziony.
Go to the top of the page
+Quote Post

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: 18.07.2025 - 14:45