2009年6月8日星期一

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

How about using an View Helper with the BaseURL?
http://framework.zend.com/manual/en/zend.view.helpers.html

Then you could use in your View for example

<img src="<?php echo $this->baseUrl();?>/images/foo.gif">

greetings

2009/6/8 iceangel89 <comet2005@gmail.com>:
>
> anyone?
> --
> View this message in context: http://www.nabble.com/Root-directory-%28linking-CSS-JS-etc%29-tp23911119p23923742.html
> Sent from the Zend MVC mailing list archive at Nabble.com.
>
>

没有评论: