[TYPO3-mvc] Insert Group from the Frontend-User in a hidden Field

Sven Hofacker info at ho-it.de
Sat Jun 8 20:59:37 CEST 2013


Hi there,

i try to insert the Group from the Frontend User in a hidden Field
(New.html), but the Value is empty and not filled!

Controller:
/**
    * action new
    *
    * @param \HOIT\Test\Domain\Model\Kunden $newkunde
    * @dontvalidate $newkunde
    * @return void
    */
    public function newAction($newkunde = NULL) {
                if(is_object($newkunde)) {
                     //do nothing
                } else {
                     $newkunde = new \HOIT\Test\Domain\Model\Kunden();
$newkunde->setPartner($GLOBALS['TSFE']->fe_user->groupData['title']);
                }
                $this->view->assign('newkunde', $newkunde);
        }

Form:
<f:form.hidden property="partner" />

I also try  
$this->view->assign('partner',
$GLOBALS['TSFE']->fe_user->groupData['title']);

the Value is also empty..

How can i insert the Group in the hidden Field?


Sven 
(Germany)




More information about the TYPO3-project-typo3v4mvc mailing list