Advertisement
Guest User

Untitled

a guest
Oct 4th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.04 KB | None | 0 0
  1.  
  2.   /**
  3.    * Initializes the current action
  4.    *
  5.    * @return void
  6.    */
  7.   public function initializeAction() {
  8.    $this->ausbildungsschwerpunktRepository = t3lib_div::makeInstance('Tx_Extensionname_Domain_Repository_AusbildungsschwerpunktRepository');
  9.   }
  10.  
  11.     /**
  12.      * action new
  13.      *
  14.      * @param $newLehrgang
  15.      * @dontvalidate $newLehrgang
  16.      * @return void
  17.      */
  18.     public function newAction(Tx_Extensionname_Domain_Model_Lehrgang $newLehrgang = NULL) {
  19.     $this->view->assign('newLehrgang', $newLehrgang);
  20.     $this->view->assign('ausbildungsschwerpunkte', $this->ausbildungsschwerpunktRepository->findAll());
  21.     }
  22.  
  23.     /**
  24.      * action create
  25.      *
  26.      * @param $newLehrgang
  27.      * @return void
  28.      */
  29.     public function createAction(Tx_Extensionname_Domain_Model_Lehrgang $newLehrgang) {
  30.         $this->lehrgangRepository->add($newLehrgang);
  31.     // etc
  32.     }
  33.    
  34.   <label for="ausbildungsschwerpunkt">Ausbildungsschwerpunkt</label>
  35.   <f:form.select property="ausbildungsschwerpunkt" options="{ausbildungsschwerpunkte}" optionLabelField="titel">
  36.  
  37.   </f:form.select>
  38.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement