Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

problème de path???

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
cyphos
Smarty n00b


Joined: 11 Dec 2009
Posts: 4

PostPosted: Fri Dec 11, 2009 5:26 pm    Post subject: problème de path??? Reply with quote

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
View user's profile Send private message
gtraxx
Smarty Regular


Joined: 08 Jan 2008
Posts: 56

PostPosted: Fri Dec 11, 2009 8:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
cyphos
Smarty n00b


Joined: 11 Dec 2009
Posts: 4

PostPosted: Sun Dec 13, 2009 9:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP