[TYPO3-english] Error in shoAction()

Jan Bednarik info at bednarik.org
Sun Oct 2 21:52:44 CEST 2016


Is such case, the exception should be

Argument 1 passed to 
\Originalen\OrigCarinfo\Controller\CarController::showAction() must be 
an instance of \Originalen\OrigCarinfo\Domain\Model\Car, none given

instead of

Argument 1 passed to 
Namespace\Path\Controller\CarController::showAction() must be an 
instance of Namespace\Path\Domain\Model\Car, none given

Or have you changed the error before posting it? Check the namespaces in 
the source codes.

Jan

Dne 02.10.2016 v 17:58 Jeppe Donslund napsal(a):
> This?
>
> /**
>      * action show
>      *
>      * @param \Originalen\OrigCarinfo\Domain\Model\Car $car
>      * @return void
>      */
>     public function showAction(\Originalen\OrigCarinfo\Domain\Model\Car
> $car = NULL)
>     {
>         //print $car;
>         $this->view->assign('car', $car);
>     }



More information about the TYPO3-english mailing list