|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
cyphos Smarty n00b
Joined: 11 Dec 2009 Posts: 4
|
Posted: Fri Dec 11, 2009 5:26 pm Post subject: problème de path??? |
|
|
bonjour
Je débute depuis quelques jours.
Une chose que je ne comprend pas pourquoi sur la première page, on voit des images grâce au css mais sur la 2ème, pas de ces images.
voici mon arborescence (je me demande si c'est une bonne arborescence logique)
merci beaucoup de votre aide
Code: |
|-smarty
|-libs
|-cache
|-templates_c
|-templates
|-img
|-members
|-members.tpl
|-header.tpl
|-footer.tpl
|-index.tpl
|-index.php
|-members.php
|
index.php
Code: |
..
$smarty_index->display('index.tpl');
..
|
members.php
Code: |
..
$smarty_membres->display('members/members.tpl');
..
|
header.tpl
Code: |
..
<link rel="stylesheet" href="templates/css/{$Css}.css" type="text/css">
..
|
Code: |
..
background: url("../img/headerV3.png");
..
|
|
|
Back to top |
|
gtraxx Smarty Regular
Joined: 08 Jan 2008 Posts: 56
|
Posted: Fri Dec 11, 2009 8:51 pm Post subject: |
|
|
Avec firebug sa donne quoi ?
En plus le dossier image ne doit pas se trouver dans le même que les templates !!
Code: | |-smarty
|-libs
|-cache
|-templates_c
|-templates
|-members
|-members.tpl
|-header.tpl
|-footer.tpl
|-index.tpl
|-img
|-index.php
|-members.php |
Ensuite dans le css on fais comme ceci :
Code: | background: url("/img/headerV3.png"); |
Les possibilités sont nombreuse |
|
Back to top |
|
cyphos Smarty n00b
Joined: 11 Dec 2009 Posts: 4
|
Posted: Sun Dec 13, 2009 9:37 am Post subject: |
|
|
merci gtraxx
j'avais pas pensé à Firebug. en tout cas, il m'a été utile.
en fait, j'avais oublié d'assigner la variable du css dans un fichier members.php
d'autre part, je modifie l'arborescence comme vous m'aviez conseillé...
encore merci |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|