[TYPO3-mvc] Generating a link to a backend-module / action
Tolleiv.Nietsch
info at tolleiv.de
Tue Nov 30 16:51:11 CET 2010
Am 29.11.2010 11:31, schrieb Bastian Waidelich:
>
> $uriBuilder =
> t3lib_div::makeInstance('Tx_Extbase_MVC_Web_Routing_UriBuilder');
> $uriBuilder->setArguments(array('M' => 'web_WorkspacesWorkspaces'));
> $viewScript = '/' . $backPath . $uriBuilder->uriFor('index', array(),
> 'Preview', 'workspaces', 'web_workspacesworkspaces');
>
> But you should instantiate Extbase/Fluid classes with the ObjectManager
> rather than with t3lib_div::makeInstance() in order to make use of
> Dependency Injection (Otherwise you'll might be missing some objects to
> be set in the UriBuilder).
> Unfortunately there's still a bug in the object container [1], so you'll
> have to instantiate the ConfigurationManager too:
>
Huh funny, instantiating the controller was what I found in one of the
existing view helpers - anyways, let me know once there's a working way
to trigger all this. I'd be glad to get rid of the current solution ;)
Cheers,
Tolleiv
--
Tolleiv Nietsch
www.tolleiv.de - www.aoemedia.de
Twitter: http://www.twitter.com/tolleiv
More information about the TYPO3-project-typo3v4mvc
mailing list