Hallo Cedric,

danke für das snippet, hab es eingebaut, hat aber auch nichts geholfen; es wird 
immer noch nichts angezeigt.
Ehrlich gesagt hätte mich das auch gewundert, weil die Methode findAll() im 
gleichen Controller funktioniert und dies nicht benötigt.
Aber da ich ein totaler Anfänger in der Extension-Entwicklung bin, kann ich es 
auch nur so argumentieren.

Johannes.

> -----Ursprüngliche Nachricht-----
> Von: typo3-german-boun...@lists.typo3.org 
> [mailto:typo3-german-boun...@lists.typo3.org] Im Auftrag von 
> Cedric Ziel
> Gesendet: Montag, 2. Dezember 2013 14:55
> An: German TYPO3 Userlist
> Betreff: Re: [TYPO3-german] Extbase Controller debuggen
> 
>   Hallo Johannes,
> 
> deine Repo muss in den Controller injiziert werden:
> 
> /**
> * @var \Dein\Namespace\Domain\Repository\SubRegionRepository
> * @inject
> */
> protected $subRegionRepository;
> 
> Dann kannst du es auch benutzen.
> 
> Viele Grüße,
> Cedric
> 
> Zitat von "JCL - Johannes C. Laxander" <j...@laxander.com>:
> 
> > Hallo Cedric,
> >
> > du hast recht, mein Beispiel war unvollständig. Das 
> > subRegionRepository ist so angelegt:
> >
> > class SubRegionRepository extends
> > \TYPO3\CMS\Extbase\Persistence\Repository {
> >
> > }
> > ?>
> >
> > Johannes.
> >
> >> Cedric Ziel
> >> Gesendet: Montag, 2. Dezember 2013 14:04
> >> An: German TYPO3 Userlist
> >> Betreff: Re: [TYPO3-german] Extbase Controller debuggen
> >>
> >>   Hi,
> >>
> >> auf jeden Fall fehlt dir das subRegionRepository. Es sei 
> denn, dein 
> >> Beispiel ist unvollständig.
> >>
> >> Gruß,
> >> Cedric
> >>
> >> Zitat von "JCL - Johannes C. Laxander" <j...@laxander.com>:
> >>
> >> Hallo,
> >>
> >> ich möchte mir das Objekt-Array einer findByProberty-Methode im 
> >> Backend anzeigen lassen.
> >> Die betreffende Funktion wird in der flexform mit
> >>
> >> <itemsProcFunc>tx_sccruiseplan_Controller_SubRegionController-
> >> findInMainRegion()</itemsProcFunc>
> >>
> >> aufgerufen:
> >>
> >> <?php
> >> namespace VENDOR\MyExtension\Controller;
> >>
> >> class SubRegionController extends
> >> \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
> >>
> >> public function findInMainRegion() {
> >>
> >>          $subRegions =
> >> $this->subRegionRepository->findByMainRegionAssignment(2);
> >>
> >> \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($subRegions);
> >>
> >>          $this->view->assign('subRegions', $subRegions); }
> >>
> >> }
> >> ?>
> >>
> >> Es wird aber nichts angezeigt. Was mache ich falsch?
> >>
> >> Johannes.
> >
> > _______________________________________________
> > TYPO3-german mailing list
> >
> TYPO3-german@lists.typo3.orghttp://lists.typo3.org/cgi-bin/mai
lman/listinfo/typo3-german
> 
> > Hallo Cedric,
> >
> > du hast recht, mein Beispiel war unvollständig. Das 
> > subRegionRepository ist so angelegt:
> >
> > class SubRegionRepository extends
> > \TYPO3\CMS\Extbase\Persistence\Repository {
> >
> > }
> > ?>
> >
> > Johannes.
> >
> >> Cedric Ziel
> >> Gesendet: Montag, 2. Dezember 2013 14:04
> >> An: German TYPO3 Userlist
> >> Betreff: Re: [TYPO3-german] Extbase Controller debuggen
> >>
> >>   Hi,
> >>
> >> auf jeden Fall fehlt dir das subRegionRepository. Es sei 
> denn, dein 
> >> Beispiel ist unvollständig.
> >>
> >> Gruß,
> >> Cedric
> >>
> >> Zitat von "JCL - Johannes C. Laxander" <j...@laxander.com>:
> >>
> >> Hallo,
> >>
> >> ich möchte mir das Objekt-Array einer findByProberty-Methode im 
> >> Backend anzeigen lassen.
> >> Die betreffende Funktion wird in der flexform mit
> >>
> >> <itemsProcFunc>tx_sccruiseplan_Controller_SubRegionController-
> >> findInMainRegion()</itemsProcFunc>
> >>
> >> aufgerufen:
> >>
> >> <?php
> >> namespace VENDOR\MyExtension\Controller;
> >>
> >> class SubRegionController extends
> >> \TYPO3\CMS\Extbase\Mvc\Controller\ActionController {
> >>
> >> public function findInMainRegion() {
> >>
> >>          $subRegions =
> >> $this->subRegionRepository->findByMainRegionAssignment(2);
> >>
> >> \TYPO3\CMS\Extbase\Utility\DebuggerUtility::var_dump($subRegions);
> >>
> >>          $this->view->assign('subRegions', $subRegions); }
> >>
> >> }
> >> ?>
> >>
> >> Es wird aber nichts angezeigt. Was mache ich falsch?
> >>
> >> Johannes.
> >
> > _______________________________________________
> > TYPO3-german mailing list
> >
> TYPO3-german@lists.typo3.orghttp://lists.typo3.org/cgi-bin/mai
lman/listinfo/typo3-german
> --
> Cedric Volker Ziel
> Internetdienstleistungen & EDV
> 
> Robert-Koch-Str. 40
> 06110 Halle (Saale)
> 
> Telefon: +49 (0) 345 / 213 79 532
> Telefax: +49 (0) 1805 / 388 37 9447
> Mobil: +49 (0) 151 / 253 44 284
> 
> Mail: i...@cedric-ziel.com
> Web: http://www.cedric-ziel.com
> XING: http://www.xing.com/profile/Cedric_Ziel
> 

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

Antwort per Email an