Thanks for your reply ... I know about absolute paths ... My question is why it did work ???
Cordialmente; Daniel E. Massón. Web: www.imagine.com.co Te Deseamos una Feliz Navidad y un Prospero 2,003 > -----Mensaje original----- > De: olinux [mailto:[EMAIL PROTECTED]] > Enviado el: jueves, 12 de diciembre de 2002 16:14 > Para: Daniel Masson; 'PHP' > Asunto: Re: [PHP] Smarty + css + dreamweaver > > > use absolute path > <link rel="stylesheet" href="/style.css" > type="text/css"> > > or > > <link rel="stylesheet" > href="http://www.sitename.com/style.css" > type="text/css"> > > > --- Daniel Masson <[EMAIL PROTECTED]> wrote: > > Hi list : > > > > This is maybe a silly question from deamweaver > > users, i hope you people > > understand what i mean. > > > > im working on a site php, smarty,css , etc. the > > directory structure of > > the site is this: > > > > > ---------------------------------------------------------- > > - classes > > - Files of the smarty class > > - Templates (Directory) > > - template1.html > > - template2.html > > - template3.html > > - dw_template.dwt > > script1.php > > script2.php > > script3.php > > style.css > > javasc.js > > > ---------------------------------------------------------- > > > > script1.php, script2.php, and script3.php look like > > this > > > > Require "/path/to/smarty/smartyfile.class.php"; > > $page = new Smarty; > > // some stuff > > $page->display("templateN.html"); > > //end > > > > Im working dreamweaver Templates system so every templateN.html are > > attached to dw_template.dwt, dw_template.dwt calls > > the style sheet like > > this: > > > > <link rel="stylesheet" href="../style.css" > > type="text/css"> > > > > Of course all the templatesN.html call the style > > shett the same way. No > > problem here. But ... since scriptsN.php need the > TemplatesN.html ... > > (maybe im wrong with this) the browser doesnt know > > that > > Templates/TemplatesN.html exist, the browser calls > > > > http://site/script1.php > > http://site/script2.php > > > > So the browser shouldnt find the style sheet because TemplatesN.html > > call ../style.css and ../style.css doesnt exists > > relative to > > http://site/scriptN.php , and for my surprise the > > output result DOES > > apply the style sheet ... Am i wrong with this ??? > > Or what should i know > > about all this ?? > > > > Thanks for reading this long and silly question. > > > > > > Daniel. > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php