2009年6月7日星期日

[fw-mvc] Root directory (linking CSS/JS etc)

when i use images/css/js in ZF1.8 app, i use site relative links - isit a
good idea? most ZF tutorials use site relative links

/images/img1.jpg

but if my url is something like

localhost/site/

the links break, how can i fix that if i cant change the site root - i mean
can't make virtual directories such to use http://site/ instead

i am trying out Zend Server with IIS and cant seem to have virtual hosts in
IIS. but i will still need something like that to work as i am thinking of
making a portfolio so the ZF apps will need to be in something like

site.com/folio/app1

is there a way to say all requests that go to site.com/folio/* takes
site.com/folio/ as root?
--
View this message in context: http://www.nabble.com/Root-directory-%28linking-CSS-JS-etc%29-tp23911119p23911119.html
Sent from the Zend MVC mailing list archive at Nabble.com.

没有评论: