I'm kinda new to TYPO3 and created one of my first extensions. Currently I'm having a Domain Model for a Product. I would like to do list- and show-Action for this model. However, when I'm generating the link to the show action with the f:link.action viewhelper, and use the link, TYPO3 seems to get into an endless-loop, but inside of my showAction, there is no loop. Now I've tried to get a debug output with the product inside. In case an Exception is thrown, I can see that the product-parameter is passed correctly (full data is inside).
Has anyone an idea what this could be?
Currently im using TYPO3 8.7.6
generated link looks like
http://my_ext.io/de/products/category/?tx_myextension_product%5Bproduct%5D=3&tx_myextension_product%5Baction%5D=show&tx_myextension_product%5Bcontroller%5D=Product&cHash=cd1717c3d94a3aaa3d7c4a91be34e839
it ends with an runtime error
the showAction looks like this
/**
* @param \MyVendor\Myextension\Domain\Model\Product $product
*/
public function showAction($product){
$this->view->assign('product', $product);
}
'code' in Fluid
<f:link.action action="show" arguments="{product: product}">
{product.title} </f:link.action>
Thank you :)
initializeShowAction()which runs before yourshowAction. Otherwise I would look for error handling settings and typos. - Thomas Löffler