Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> instalowanie smartów
mateuszpi
post
Post #1





Grupa: Zarejestrowani
Postów: 140
Pomógł: 0
Dołączył: 11.09.2006
Skąd: Jaworzno

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


Witam
jako ze troche php poznałem to chciałem oddzielić kod php od html i w tym celu postanowiłem dodać smarty do swoich stron php

zanim sam coś zaczne pisac w tej dziedzinie chciałem zobaczyć czy wogóle to dziala i tutaj jest problem. ściagłem całą paczke i tam jest folder demo. uruchomiłem go i mam taki bląd:
  1. <?php
  2. php Warning: Smarty::include(templates_c%%45^45E^45E480CD%%index.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in C:SerwerPHPincludeslibsSmarty.class.php on line 1258 php Warning: Smarty::include() [function.include]: Failed opening 'templates_c%%45^45E^45E480CD%%index.tpl.php' for inclusion (include_path='C:Serwerphpincludes') in C:SerwerPHPincludeslibsSmarty.class.php on line 1258 php Warning: Smarty::include(templates_c%%86^865^8651FDFF%%debug.tpl.php) [function.Smarty-include]: failed to open stream: No such file or directory in C:SerwerPHPincludeslibsSmarty.class.php on line 1925 php Warning: Smarty::include() [function.include]: Failed opening 'templates_c%%86^865^8651FDFF%%debug.tpl.php' for inclusion (include_path='C:Serwerphpincludes') in C:SerwerPHPincludeslibsSmarty.class.php on line 1925
  3. ?>


czy możecie powiedzieć co zrobiłęm nie tak questionmark.gif

pliki odpowiednio przekopiowane i nie powinno być problemów w tej dziedzinie
Go to the top of the page
+Quote Post
Fallout
post
Post #2





Grupa: Zarejestrowani
Postów: 154
Pomógł: 0
Dołączył: 17.12.2003
Skąd: Olsztyn

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


Poczytaj o instalacji smarty, jest tam informacja, że katalog templates_c musi mieć prawa zapisu.


--------------------
Go to the top of the page
+Quote Post
mateuszpi
post
Post #3





Grupa: Zarejestrowani
Postów: 140
Pomógł: 0
Dołączył: 11.09.2006
Skąd: Jaworzno

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


wszystkie foldery mają prawa 777
Go to the top of the page
+Quote Post
Fallout
post
Post #4





Grupa: Zarejestrowani
Postów: 154
Pomógł: 0
Dołączył: 17.12.2003
Skąd: Olsztyn

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


Cytat
failed to open stream: No such file or directory in C:


a co Ci to mówi? Że plik lub katalog nie istnieje w katalogu C:

sprawdź ustawienia smarty, tzn.
$smarty->template_dir
$smarty->compile_dir

i ewentualnie
$smarty->cache_dir
$smarty->config_dir


--------------------
Go to the top of the page
+Quote Post
mateuszpi
post
Post #5





Grupa: Zarejestrowani
Postów: 140
Pomógł: 0
Dołączył: 11.09.2006
Skąd: Jaworzno

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


a możesz podać w jakim pliku bo aczej wszelkie scieżki są podane dobrze w plikach:
Config_File.class.php i Smarty.class.php
Go to the top of the page
+Quote Post
ARJ
post
Post #6





Grupa: Zarejestrowani
Postów: 453
Pomógł: 22
Dołączył: 20.09.2004
Skąd: Kraków - NH -

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


przeczytaj to: Temat: smarty wiadomosci wstepne może się sytuacja rozjaśni


--------------------
Warsztat: Windows 7 Pro 64bit | Apache 2.2 | PHP 5.2 | MySQL 5.0 | PHPmyadmin 2.6.4
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 Aktualny czas: 21.08.2025 - 09:16