CSS does not apply correctly in ZendFramework


am new to zend framework. Am having a little problem and a real hard time solving it myself.

If i access my zend application by going to http://localhost/zendapplicationfolder/contact it displays correctly with css applying correctly but if i access the zend application by going to http://localhost/zendapplicationfolder/contact/ (added a forward slash) , the page displays but css is not applied, but if i view the source, the css link is embedded normally between the head tags.

pls i need urgent help with this.


The dcode to include the CSS should be in a layout file, and should use the baseurl helper instead of manually writing the link to the css file.

Helper class:

class Zend_View_Helper_BaseUrl
    function baseUrl()  {
        return Zend_Controller_Front::getInstance()->getBaseUrl();

Code in the layout:

<link rel="stylesheet" type="text/css" media="screen" href="<?=$this->baseUrl();?>/your/path/from base url/your.css" />