News Feed
Jobs Feed
Sections




News Archive
feed this:

Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Robert Basic's Blog:
MyUrl view helper for Zend Framework
December 02, 2008 @ 12:54:32

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.

0 comments voice your opinion now!
url helper zendframework myurl zendviewhelperurl view


Matthew Turland's Blog:
Simplifying Zend_View_Helper_Url
July 14, 2008 @ 08:48:18

Matthew Turland has posted a quick tutorial where he aims to simplify some of the functionality that the Zend Framework's Zend_View_Helper_Url view helper has to offer.

When I first began working with Zend_View on a project at work, I noticed that the Url view helper was a bit of a pain to use. It was rare that I didn't want to specify one or more of the action, controller, and module in my call along with the other Route assembly parameters.

He wanted to be able to get around some limitations of the helper - use arrays to help label the calls more readable and to be able to refer to other actions in the same controller. He actually made another view helper, one that extends Zend_View_Helper_Url with a few optional parameters including the extra data he wanted in an array. You can see the code at the bottom of his post (he credits Andy Best with development on the idea too).

8 comments voice your opinion now!
zendframework viewhelper zendviewhelperurl url extend class



Community Events











Don't see your event here?
Let us know!


application security framework introduction release podcast symfony2 composer install package hhvm code opinion overview hack unittest component example language facebook

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework