[TYPO3-mvc] How to use FrontendUserGroup ?

Chatelain Jean-Christophe Chatelain.Jean-Christophe at agridea.ch
Fri Mar 18 17:55:24 CET 2011


Thank you really much Armin,
I removed the instanciations in initializeAction to use DI (thanks for the snippet)
The thing that was wrong was that I didn't setted the record type for the groups.


Jean-Christophe Chatelain



-----Message d'origine-----
De : typo3-project-typo3v4mvc-bounces at lists.typo3.org [mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] De la part de Armin Rüdiger Vieweg
Envoyé : vendredi 18 mars 2011 17:25
À : typo3-project-typo3v4mvc at lists.typo3.org
Objet : Re: [TYPO3-mvc] How to use FrontendUserGroup ?

> Creating and modifying my members does work fine but now I want to be
> able to choose the usergroup for this member.

At first, you should inject the  
Tx_Extbase_Domain_Repository_FrontendUserGroupRepository and not make an  
instance in initializeAction. You'll find an example of dependency  
injection here: http://goo.gl/IuKNV (see injectFrontendUserRepository  
method)

Then $this->frontendUserGroupRepository->findAll(); should return all  
groups, which have the record type set to  
Tx_Extbase_Domain_Model-FrontendUserGroup (this can be done in T3 backend).

The assignment to template should work now.

Kind regards
Armin
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc


More information about the TYPO3-project-typo3v4mvc mailing list