I made my own extension on TYPO3 6.2 with the Extension Builder, the goal is to let the backend users create events (with name, location, date, number of people etc...) of our company.
- I created a backend plugin, it works good.
- I created a frontend plugin, but I don't know how to write my flexform file in order to let the backend users choose which event to display (through the "show" action I guess)... Best result would be to get a select list with all existing events.
How to do it ?
In my ext_localconf.php, I have :
<?php
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Mycompany.' . $_EXTKEY,
'Displayevent',
array(
'Event' => 'show',
),
// non-cacheable actions
array(
'Event' => 'show',
)
);
?>
but in frontend there is a Typo3 error :
1298012500: Required argument "event" is not set for Mycompany\MycompanyEvents\Controller\EventController->show
here my showAction() code :
/**
* action show
*
* @param \MyCompany\mycompany_events\Domain\Model\Event $event
* @return void
*/
public function showAction(\MyCompany\mycompany_events\Domain\Model\Event $event) {
$this->view->assign('event', $event);
}