How does this zend framework path work?

GBAGuru

New Member
I'm using the zend community server on windows vista. I'm following the tutorial in the book Zend Framework 1.8 by Keith Pope. \[code\]$this->_view->headLink()->appendStylesheet('/css/main.css'); \[/code\]is not finding the main.css file (404). The actual file path is htdocs/myapp/public/css/main.css . When i take out the slash and change it to\[code\]$this->_view->headLink()->appendStylesheet('css/main.css'); \[/code\]it works fine. However when look up an example of the appendStylesheet function in the zend docs, it uses the example\[code\]$this->headLink()->appendStylesheet('/styles/basic.css')\[/code\]So it seems to me what right now "works" for me is incorrect. Any ideas on why this is so?
 
Back
Top