[TYPO3-mvc] Re: Create predefined fe_groups when activating extension
David Effendi
david.effendi at limeflavour.com
Thu Dec 3 12:15:49 CET 2015
Hi,
these code examples i snapped dont belong in ext_localconf.php - they have to be in /ext/your_ext/Classes/Controller/YourController.php
which must extend the \TYPO3\CMS\Extbase\Mvc\Controller\ActionController
There you dont habe to fetch the objectManager as the extbase Action Controller delivers it.
Also you should inject the repositories like this
/**
* frontendUserGroupRepository
*
* @var \TYPO3\CMS\Extbase\Domain\Repository\FrontendUserGroupRepository
* @inject
*/
protected $frontendUserGroupRepository = NULL;
cheers
David
More information about the TYPO3-project-typo3v4mvc
mailing list