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

Pfad zu meinen CSS Files

 
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: German
View previous topic :: View next topic  
Author Message
GELight
Smarty n00b


Joined: 08 Mar 2012
Posts: 4

PostPosted: Thu Mar 08, 2012 3:04 pm    Post subject: Pfad zu meinen CSS Files Reply with quote

Hallo ale zusammen,

Dachte mir es kann nicht schaden sich doch mal hier anzumelden. Smile
Ich habe eine kleine Verständnisfrage zu den Pfaden in Smarty.

meine Templates liegen im Verzeichnis "...../templates/".
Meine CSS Files habe ich in einem Verzeichnis "static/css/reset.css".
Meien Frage ist nun, wo ich das static-Verzeichnis hinpacken muss, damit Smarty alles findet?

Ich muss noch dazu sagen, dass ich die URL per htaccess rewrite und die URLs zB so aussehen:
http://beispiel.de/admin/Info
oder
http://beispiel.de/Login

Gruß Mario
Back to top
View user's profile Send private message
Grizzly
Smarty Pro


Joined: 15 Apr 2011
Posts: 172
Location: Germany

PostPosted: Tue Apr 03, 2012 12:22 pm    Post subject: Reply with quote

Hä? Wenn du CSS verwendest, kannst du es doch referenzieren wie du lustig bist. Das hat doch mit Smarty nichts mehr zu tun und es würde weiterhin funken!

Referenzieren tust du einfach von der aktuellen php Datei. Beispiel:

- smarty
---Smarty.class.php
---plugins
---......
-templates
---index.tpl
---header.tpl
---footer.tpl
---......
-pages
---index.php
---contact.php
---.....
-static
---css
------reset.css
------..........

bist du also in meineHP.de/index.php referenzierst du zu "../static/css/reset.css"
Back to top
View user's profile Send private message Visit poster's website
TomTo
Smarty Rookie


Joined: 30 May 2009
Posts: 18

PostPosted: Wed Apr 04, 2012 2:09 pm    Post subject: Reply with quote

Wie schon gesagt, Smarty ist es eigentlich egal Wo Deine CSS Files liegen, oder ob Du überhaupt welche verwendest.
Ich für meinen Teil, binde sie am liebsten in dem Header Template ein.
Das ist auch sinnvoll so, gerade wenn man noch verschiedene Styles hat.

Code:

 <link rel="stylesheet" type="text/css" href="css/style.css" media="all" />
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: German 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