Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Initializes the current action
- *
- * @return void
- */
- public function initializeAction() {
- $this->ausbildungsschwerpunktRepository = t3lib_div::makeInstance('Tx_Extensionname_Domain_Repository_AusbildungsschwerpunktRepository');
- }
- /**
- * action new
- *
- * @param $newLehrgang
- * @dontvalidate $newLehrgang
- * @return void
- */
- public function newAction(Tx_Extensionname_Domain_Model_Lehrgang $newLehrgang = NULL) {
- $this->view->assign('newLehrgang', $newLehrgang);
- $this->view->assign('ausbildungsschwerpunkte', $this->ausbildungsschwerpunktRepository->findAll());
- }
- /**
- * action create
- *
- * @param $newLehrgang
- * @return void
- */
- public function createAction(Tx_Extensionname_Domain_Model_Lehrgang $newLehrgang) {
- $this->lehrgangRepository->add($newLehrgang);
- // etc
- }
- <label for="ausbildungsschwerpunkt">Ausbildungsschwerpunkt</label>
- <f:form.select property="ausbildungsschwerpunkt" options="{ausbildungsschwerpunkte}" optionLabelField="titel">
- </f:form.select>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement