Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [SMARTY][CSS] Problem z dołączeniem pliku CSS w Smarty
mlodygda
post 9.04.2013, 14:22:12
Post #1





Grupa: Zarejestrowani
Postów: 33
Pomógł: 0
Dołączył: 22.08.2012

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


Hej, kombinuje i kombinuje i nie idzie. W pliku css jest tylko tlo ustawione. Reszta plików:

index.php
  1. <?php
  2. include ("libs/Smarty.class.php");
  3. $smarty = new Smarty();
  4. $smarty->template_dir = "C:/xampp/htdocs/Smarty/mojastrona/templates/";
  5. $smarty->compile_dir = 'C:/xampp/htdocs/Smarty/mojastrona/templates_c/';
  6. $smarty->config_dir = 'C:/xampp/htdocs/Smarty/mojastrona/configs/';
  7. $smarty->cache_dir = 'C:/xampp/htdocs/Smarty/mojastrona/cache/';
  8. $tytul="Glowna";
  9. $smarty->display("index2.tpl");
  10. $smarty->display("naglowek.tpl");
  11.  
  12. ?>


index2.tpl:
  1. <html>
  2. <head>
  3. <meta http-equiv="content-type" content="text/html; charset=iso-8859-2">
  4. <link rel="Stylesheet" href="C:/xampp/htdocs/Smarty/mojastrona/templates/css/styl.css" type="text/css" />
  5. </style>
  6. <TITLE>{$tytul}</TITLE>
  7. </head>
  8. <body>
  9. Blabla
  10. </body>
  11. </html>


Próbowałem też z :

  1. <style type="text/css">
  2. {literal}
  3. body{
  4. height: 100%;
  5. background-image: url(tlo1.jpg);
  6. }
  7. {/literal}


i też nic. Jakieś pomysły?

serio, nikt?

Ten post edytował mlodygda 8.04.2013, 19:11:35
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 Wersja Lo-Fi Aktualny czas: 14.08.2025 - 13:54