[TYPO3-english] Re: Error in shoAction()

Florian Rival florian.typo3 at oktopuce.fr
Thu Sep 29 09:56:12 CEST 2016


Hi,

It seems that you call the showAction with an empty parameter and that the signature of your function doesn't allowed null argument.
You should check your call to showAction in the template view and look if the argument is correct.

If the argument could be NULL, you have to add "= NULL" in the controller signature, example : 

/**
* action showAction
*
* @param \Namespace\Path\Domain\Model\Car $theCar
* @return void
*/
public function showAction(\Namespace\Path\Domain\Model\Car $theCar = NULL) {
	...
}

-- 
-- Florian Rival --
www.oktopuce.fr


More information about the TYPO3-english mailing list