모든 프론트 엔드 사용자 그룹으로 어떻게 목록을 가져올 수 있습니까?TYPO3 FE_User 그룹의 목록을 얻으십시오
나는이 시도했다 :
/**
* feUserGroupRepository
*
* @var \TYPO3\CMS\Extbase\Domain\Repository\FrontendUserGroupRepository
* @inject
*/
protected $feUserGroupRepository = NULL;`
와 다음이 :
$usergroups = $this->feUserGroupRepository->findAll();
나는이 오류가있어 : 비 개체의 멤버 함수 findAll()
에 전화를
그리고 저는 이렇게 시도했습니다 :
/**
* @var \TYPO3\CMS\Extbase\Domain\Repository\FrontendUserGroupRepository $feUserGroupRepository
*/
$feUserGroupRepository = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Domain\\Repository\\FrontendUserGroupRepository');
$allUsers = $feUserGroupRepository->findAll();`
전혀 16,
dosn't 작업이 오류 메시지
있어PHP 잡아낼 치명적인 오류 : 인수 한 내가 모든 feusergroups와 목록을 얻을 수있는 방법
TYPO3\CMS\Extbase\Persistence\Repository::__construct() must implement interface
TYPO3\CMS\Extbase\Object\ObjectManagerInterface, none given, called in
C:\xampp\htdocs\typo3\typo3\sysext\core\Classes\Utility\GeneralUtility.php on
line 4431 and
defined in C:\xampp\htdocs\typo3\typo3\sysext\extbase\Classes\Persistence\Repository.php
에 전달?
Rcord 유형?
먼저 서식을 개선하십시오. – lorenz
이미 완료되었습니다 ... – Felix