[TYPO3-ect] lib/div: Problems with using controller as sub-controller

Franz Koch typo.removeformessage at fx-graefix.de
Tue Oct 9 13:49:03 CEST 2007


Hi,

>> public function showUserSearchAction() {
>>         $actionPipe =
>>     $this->makeInstance('tx_mklvcommunity_models_user');
>>         $actionPipe =
>>     $this->makeInstance('tx_mklvcommunity_views_userSearch',        
>>         $actionPipe);

> The error message I get is the following:
> 
> Fatal error: Call to a member function get() on a non-object in 
> /var/www/localhost/svn/subida/typo3conf/ext/lib/class.tx_lib_processorBase.php 
> on line 104

Having a look at your function above, I could imagine that the problem 
could be, that you first delcare $actionPipe with a modelObject and then 
declare $actionPipe with a new viewObject, passing $actionPipe as 
parameter, which probably is passed by reference? So you might pass a 
reference to the viewObject with itself (if it is passed referenced - 
not sure - didn't have a look at the source of lib).
I would first try to use a different variable name for the modelObject. 
Just a shot in the dark (german: Schuss ins Blaue).

--
Kind regards,
Franz Koch


More information about the TYPO3-team-extension-coordination mailing list