开发者

Zend View external url appended to site url

The zend framework appends all url's without a 'http' prexix to the page url.

E.g. http://site.com/www.anothersite.com

How can I get it to开发者_JS百科 just appear at www.anothersite.com without the http?

This is happening for url's that are in a hard coded anchor without dynamic content. I could add http to the url, but there must be a solution to having links begin with www?


You just have to make a normal HTML link like that :

<a href="http://www.someothersite.com">www.someothersite.com</a>

There is no use for the URL view helper here since it is outside of the content managed by Zend and therefore, you don't have to comply with the router

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜