[TYPO3-mvc] Assign Model from one controller to another

Armin Rüdiger Vieweg armin.vieweg at diemedialen.de
Thu Nov 25 13:12:08 CET 2010


Hello,

I've got a problem with assigning a model from a search-controller to the  
product-controller:

public function  
validateAction(Tx_Serviceportal_Domain_Model_AdvancedSearchRequest  
$request) {
   $this->redirect('list', 'product', NULL, array('request' => $request),  
12);
}


The listAction of productController don't receive the model $request.

public function  
listAction(Tx_Serviceportal_Domain_Model_AdvancedSearchRequest $request =  
NULL) {
	echo "<pre>";
	var_dump($request);
	die;
	//...
}

$request is NULL.

Is it possible to assign a model to another controller, without persist  
it? And if yes, how?

It is for a product search. I want to assign the model, which contains the  
search request arguments to the productRepository over the list-Action.

Thanks for your attension!

Kind regards
Armin R. Vieweg


More information about the TYPO3-project-typo3v4mvc mailing list