From fluid, I call my viewhelper-class <ext:thehelper adr="{adr}" /> {adr} is an array of tt_address → FriendsOfTYPO3\TtAddress\Domain\Model\Address
in the viewhelper I register the argument
use FriendsOfTYPO3\TtAddress\Domain\Model\Address;
public function initializeArguments() {
$this->registerArgument('adr', 'FriendsOfTYPO3\TtAddress\Domain\Model\Address', 'the addresses', true);
}
this fails with this message: The argument "adr" was registered with type "FriendsOfTYPO3\TtAddress\Domain\Model\Address", but is of type "TYPO3\CMS\Extbase\Persistence\Generic\QueryResult" in view helper
How can I receive the adr-array to work with. Thank You for your help!
$this->view->assign('adr', $address->toArray());
. - David\TYPO3\CMS\Extbase\Persistence\Generic\QueryResult
as argument in the viewhelper:$this->registerArgument('adr', 'TYPO3\CMS\Extbase\Persistence\Generic\QueryResult', 'the addresses', true); }
- David