Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Smarty] Problem z .tpl
Exodus
post
Post #1





Grupa: Zarejestrowani
Postów: 44
Pomógł: 0
Dołączył: 16.10.2007

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


A więc mam taki problem. Mam stronę no i chce sobię utworzyć folder np. admin w którym będą pliki z panelu admina. Ale, jak próboję includować plikiz folderu ../includes/header.php itp. Wyskakuje następujący błąd:

Warning: Smarty error: unable to read resource: "header.tpl" in C:\usr\httpd\cms\libs\Smarty.class.php on line 1095

Jak ten problem rozwiązać?


Ten post edytował Exodus 17.10.2007, 14:05:52
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Cienki1980
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 1 590
Pomógł: 40
Dołączył: 11.01.2007
Skąd: Centrum

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


A pokazujesz Smarty gdzie znajdują sie katalogi z tpl'ami ?

  1. <?php
  2. $smarty = new Smarty;
  3.  
  4. $smarty->template_dir = "sciezka/do/katalogu/templates/";
  5. $smarty->compile_dir = "sciezka/do/katalogu/templates_c/";
  6. ?>


PS.Dodaj [tag] do tematu.
Go to the top of the page
+Quote Post

Posty w temacie


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: 15.10.2025 - 01:26