Hallo Comunity,

ich bin zur Zeit dabei tiefer in die Extensionentwicklung einzutauchen. Ich 
habe schon ein paar gebaut, die aber immer dem gleichen Schema folgen. ich lege 
einfach felder in der tt_content an, kann diese dann im Backend befüllen und im 
frontend ausgeben. Jetzt will ich aber was für micj neues versuchen und will an 
die fe_users Tabelle ran.
Zum Anfang will ich erstmal die Datensätze darin auslesen.Ich hab mich schon 
durch ne Menge tuts gearbeitet, bleibe aber immer an einer Stelle hängen. Hier 
mal mein Code vom Controller:
<?php
namespace TYPO3\MusicfinderRegister\Controller;

/***************************************************************
*  Copyright notice
*
* (c) 2013 * All rights reserved
*
*  This script is part of the TYPO3 project. The TYPO3 project is
*  free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 3 of the License, or
*  (at your option) any later version.
*
*  The GNU General Public License can be found at
*  http://www.gnu.org/copyleft/gpl.html.
*
*  This script is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/

/**
*
*
* @package musicfinder_register
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, 
version 3 or later
*
*/
class UserController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController 
{

        /**
         * userRepository
         *
         * @var \TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository
         * @inject
         */
        protected $frontendUserRepository;

        /**
    *
* @param Tx_Extbase_Domain_Repository_FrontendUserRepository $frontendUserRepository */
   public function 
injectFrontendUserRepository(\TYPO3\CMS\Extbase\Domain\Repository\FrontendUserRepository
 $frontendUserRepository) {
       $this->frontendUserRepository = $frontendUserRepository;
   }

        /**
         * action list
         *
         * @return void
         */
        public function listAction() {
                $users = $this->frontendUserRepository->findAll();
                $this->view->assign('users',$users);
        }

}
?>

Im view hab ich dann einfach $users debugt, aber es ist immer leer.
Die Ausgabe im Debugfenster sieht so aus
TYPO3\CMS\Extbase\Persistence\Generic\QueryResultprototypeobject (empty)

Hat da vielleicht jemand einen Tipp für mich? Irgendwie komm ich da nicht mehr 
weiter.
Vielen Dank


_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an