Morgen,

ich versuche die tabelle fe_users mappen.

In mein controller:

class UserlistController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {

    /**
     * userlistRepository
     *
     * @var \Seuserpue\Simpleseeuser\Domain\Repository\UserlistRepository
     * @inject
     */
    protected $userlistRepository = NULL;

    /**
     * Inject the user repository
     *
* @param \Seuserpue\Simpleseeuser\Domain\Repository\UserlistRepository $userlistRepository
     * @return void
     */
public function injectFrontendUserRepository (\Seuserpue\Simpleseeuser\Domain\Repository\UserlistRepository $userlistRepository) {
        $this->userlistRepository = $userlistRepository;
    }

    /**
     * action list
     *
     * @return void
     */
    public function listAction() {
        $userlists = $this->userlistRepository->findAll();
        #$userlists = $this->userlistRepository->findByUid(1);
\TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($userlists, 'userlists');
        $this->view->assign('userlists', $userlists);
    }

    /**
     * action show
     *
     * @param \Seuserpue\Simpleseeuser\Domain\Model\Userlist $userlist
     * @return void
     */
public function showAction(\Seuserpue\Simpleseeuser\Domain\Model\Userlist $userlist) {
        $this->view->assign('userlist', $userlist);
    }

}


und in Model:

class Userlist extends \TYPO3\CMS\Extbase\Domain\Model\FrontendUser {

    /**
     * Comment
     *
     * @var string
    */
    protected $comment;

    /**
     * Setter for comment
     *
     * @param string $comment
     * @return void
    */
    public function setComment ($comment) {
        $this->comment = $comment;
    }

    /**
     * Getter for comment
     *
     * @return string
    */
    public function getComment () {
        return $this->comment;
    }
}


Dann bekomme ich die Fehler:
Class Seuserpue\Simpleseeuser\Controller\Seuserpue\Simpleseeuser\Domain\Repository does not exist

Besten Dank für eure Hilfe

Nicolás



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

Antwort per Email an