[TYPO3-mvc] Viewhelper "tags not properly nested" issue
Till Wimmer
g4-lisz at tonarchiv.ch
Thu Mar 28 18:31:38 CET 2013
ok, attachements are not accepted... here is the viewhelper code:
/**
*
* @param Tx_Hplusinfo_Domain_Model_Klinik $klinik
* @param Tx_Hplusinfo_Domain_Model_SearchDemand $demand
* @param string $as Iteration variable
* @return string
*/
public function render(Tx_Hplusinfo_Domain_Model_Klinik $klinik,
Tx_Hplusinfo_Domain_Model_SearchDemand $demand, $as ) {
$isAmbulant = false;
$isStationaer = false;
foreach($klinik->getReha() as $klinikreha) {
foreach($demand->getRehas() as $demandreha) {
if($klinikreha->getReha()->getUid() == $demandreha) {
if(!$isStationaer)
$isStationaer = $klinikreha->getIsStationaer();
if(!$isAmbulant)
$isAmbulant = $klinikreha->getIsAmbulant();
break;
}
}
if ($isAmbulant && $isStationaer)
break;
}
$this->variableContainer->add($as, array('isAmbulant'=>$isAmbulant,
'isStationaer'=>$isStationaer));
return $this->renderChildren();
}
More information about the TYPO3-project-typo3v4mvc
mailing list