[TYPO3-mvc] Howto call a ViewHelper like f:link.action in my own view helper class?

Dennis Ahrens dennis.ahrens at googlemail.com
Fri Jan 21 18:14:41 CET 2011


Hi Raymund,

use the UriBuilder in your ViewHelper to fetch the URI you like to link to.

the following snippet fetches a UriBuilder instance inside a ViewHelper:

$uriBuilder = $this->controllerContext->getUriBuilder();

have a look at the code inside the render method of the 
Tx_Fluid_ViewHelpers_Uri_ActionViewHelper for more informations.

regards
Dennis


More information about the TYPO3-project-typo3v4mvc mailing list