Zend Framework in a subfolder, but images taken from site root

Posted by Pentium10 on Stack Overflow See other posts from Stack Overflow or by Pentium10
Published on 2011-01-10T10:51:40Z Indexed on 2011/01/10 10:53 UTC
Read the original article Hit count: 184

Filed under:
|

I have a dev project setup in a subfolder on my testing machine and it must stay there. However all the Zend frameworks views are linked to server root.

CSS are linked like:

<link type="text/css" href="<?php echo $this->baseUrl('/css/frontend.css') ?>" rel="Stylesheet" />  

Which must be stayed this way, but it should link to

localhost/a/b/c/prj1/css/frontend.css

How can I setup a global subdirectory for this?

© Stack Overflow or respective owner

Related posts about php

Related posts about zend-framework