[TYPO3-mvc] extbase: build a FE uri in BE

Pascal Geldmacher pgeldmacher at best-mediaforge.com
Wed Jan 20 12:35:28 CET 2010


Hey,

I've a problem to create a FE uri in BE.
I need this link not for my own FE but for trackback.

I've tried to use the Tx_Extbase_Web_Routing_UriBuilder to create the 
link but it doesn't work. it builds the baseUri but it doesn't create 
the arguments.

That's the code which i've used:
$request = t3lib_div::makeInstance('Tx_Extbase_MVC_Web_Request');
$request->setBaseUri($_SERVER['HTTP_HOST']);
		
$builder=t3lib_div::makeInstance('Tx_Extbase_MVC_Web_Routing_UriBuilder');
$uri = $builder->setRequest($request)	 
->setCreateAbsoluteUri(true)	       			 						 
->setArguments(array('tx_mfblog_pi1'=>array('action' => 'show', 
'controller' => 'Post', 'post' => $post->getUid())))
->$builder->buildFrontendUri();

Maybe i've forget something ?

Thanks for help,

Pascal





More information about the TYPO3-project-typo3v4mvc mailing list