2009年6月8日星期一

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

Another option is to use the <base> tag:


but I don't know how well it is supported (e.g. mobile web may not support it).

-Hector


On Mon, Jun 8, 2009 at 6:53 AM, Tobias Neumann <maetrus@gmail.com> wrote:
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.
>
>


没有评论: