On 22/02/2009 17:13, dele454 wrote:
<link href="../../css/venues_content.css" media="screen" rel="stylesheet"
type="text/css" />
but for layout-site-view.phtml -
<link href="../../../css/venues_content.css" media="screen" rel="stylesheet"
type="text/css" />
Consider using the baseUrl property from the Request object.
Create a view helper in your views/helpers folder:
<?php
class Zend_View_Helper_BaseUrl
{
public function baseUrl()
{
return Zend_Controller_Front::getInstance()->getBaseUrl();
}
}
Then in your layouts and view scripts you can do:
<link href="<?php echo $this->baseUrl();?>/css/venues_content.css"
media="screen" rel="stylesheet" type="text/css" />
Similarly with Dojo:
$this->dojo()->setLocalPath($this->baseUrl();?>.'/js/dojo/dojo.js')
Regards,
Rob...