[TYPO3-mvc] (v4 only) getContentObjectData or try to get uid of plugin
Franz Koch
typo3.RemoveForMessage at elements-net.de
Fri Mar 12 16:15:12 CET 2010
Hi,
> I tried $this->cObj = t3lib_div::makeInstance('Tx_Extbase_MVC_Web_Request');
> inside initializeAction() and then $this->cObj->getContentObjectData()
> resulting in empty..
That can't work. Tx_Extbase_MVC_Web_Request is no singleton, so you're
getting back a empty instance of the web request.
From where in you're code would you like to retrieve the cObjects uid?
Your controller, or a service etc?
Inside your controller you can use $this->request->getContentObjectData();
from anywhere else you might have to get the dispatcher and directly
grab the data from there: Tx_Extbase_Dispatcher::$cObj->data;
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list