home 首页 » 精彩日志 » 日志查看

Robert Basic's Blog: MyUrl view helper for Zend Framework

 2008-12-03 03:40:05 

Robert Basic has posted a view helper for the Zend Framework he's developed - one to more correctly handle URLs without dropping the query string information.

Zend Framework's built in URL view helper - Zend_View_Helper_Url - is discarding the query string of the URL, thus breaking some links.

The included helper for URL building formats the output in a slightly unexpected way, so his helper uses this format and, with the help of a few loops and some string appending, spits a "more correct" version out the other side. Complete code and a usage example are included.

收藏:

发表评论:
大名:*
网址:   http://sitename
评论:*