to get the right url?
Lucas Corbeaux wrote:
>
> Hello there,
>
> I was reading documentation about the Zend_View_Helper_BaseUrl, and I read
> this :
>
> <base href="<?php echo $this->baseUrl(); ?>" />
>
> This example doesn't work at all, as (I'm pretty sure of this), base html
> tag needs an absolute Url to work.
> For this example to work, I think something like :
>
> $this->view->getHelper('BaseUrl')->setBaseUrl('http://' .
> $this->_request->getServer('SERVER_NAME') . '/' .
> $this->getFrontController()->getBaseUrl());
>
> is needed before, in the controller.
>
> Is the documentation wrong, or am I ?
> Here is the link :
> http://framework.zend.com/manual/en/zend.view.helpers.html#zend.view.helpers.initial.baseurl
>
> Thanks,
> Lucas
>
>
--
View this message in context: http://old.nabble.com/Zend_View_Helper_BaseUrl-documentation-tp25295693p26283791.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论