Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [smarty] - zmienne konfiguracyjne
bełdzio
post
Post #1





Grupa: Zarejestrowani
Postów: 690
Pomógł: 81
Dołączył: 6.04.2005
Skąd: Szczecin

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


hi smile.gif mam taki denerwujący problem ze Smarty mianowicie chodzi o to że nie wyświetlają mi się zmienne z konfiga :| mam takie oto kody :

index.php
  1. <?
  2. include_once('Smarty/Smarty.class.php');
  3.  
  4. $smarty = new Smarty;
  5.  
  6. $smarty->template_dir = '/';
  7. $smarty->compile_dir = 'oko/';
  8. $smarty->config_dir = '/';
  9.  
  10. $smarty->display('index.tpl');
  11.  
  12. ?>


index.tpl
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2.  
  3.  
  4. <head>
  5. <title>Untitled</title>
  6. </head>
  7.  
  8. <body>
  9. {config_load file="cos.conf"}
  10. <h1>{#zmienna#}</h1>
  11.  
  12. </body>
  13. </html>


cos.conf
Kod
zmienna = "oko"


i doopa nic się nie pokazuje sad.gif


--------------------
Go to the top of the page
+Quote Post

Posty w temacie
- bełdzio   [smarty] - zmienne konfiguracyjne   14.01.2006, 20:39:44
- - sf   wlacz debugowanie   15.01.2006, 08:59:38
- - bełdzio   to znowu ja CytatSmarty Debug Console included t...   15.01.2006, 11:59:02


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: 22.08.2025 - 04:11