[TYPO3-ect] lib/div: Unknown action with 2 controllers after validating a form

Fabian Fisahn fabian_fisahn at hotmail.com
Tue Aug 7 10:07:17 CEST 2007


Hi List,

I inserted 2 plugins/controllers on a page, the first prints a list of
database entries, the second shows a formular to edit a database entry.

In general it works, but if I validate the form and print a error list
in second controller,
the first controllers says:
"Unknown action.
Mind: All valid action functions have to end with "Action"."

This is an abstract of the code of my second controller:
-------
$this->validator= $this->getValidator();

if ($this->validator->ok()) {
	
	[... save values to database]
	
	[... redirect to same page]

	// this works fine for both controllers
} else {
	// go to print errors

	return $this->_compose(); // this makes things like method "display" in
"class.tx_bananas_controllers_form.php" of ext: bananas

	// this works fine only for second controller
}
------

Is there a solution to give the first controller the necessary action?
Ok, a solution could be to integrate the first controller to the second,
but thats not nice.


Thanks
Fabian



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