[TYPO3-mvc] website url in fluid?

Bastian Waidelich bastian at typo3.org
Mon Sep 12 11:06:22 CEST 2011


Pankaj Lele wrote:

Hi Pankaj, Stefano

> f:cObject can be used smartly.

That's right.
Alternatively you could set the variable via PHP like this:


protected function initializeView(Tx_Extbase_MVC_View_ViewInterface $view) {
     $view->assign('typo3RequestUrl', 
t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'));
}

Best
Bastian


More information about the TYPO3-project-typo3v4mvc mailing list