[TYPO3-mvc] Little Problem with Extbase Extension in Typo3 6.0
Christian Müller
christian.mueller at typo3.org
Wed Jun 12 09:00:27 CEST 2013
Hi Stefan,
On 11.06.13 12:24, Stefan Kruse wrote:
> Hi, i write an Extension with Typo3 6.0 and Extbase 6.0. I configure a
>
> In the Suggest->eidProduct Method I have this content:
>
>
>
> $subcategories = $this->subcategoryRepository->findAll();
>
> $result = array();
>
> $suggestions = array();
>
> $result[] = $this->pivars['query'];
This looks wrong, there is no pivars in Extbase.
>
> foreach($subcategories as $subcategory) {
>
> var_dump($subcategory->getName());
>
> $suggestions[] = $subcategory->getName();
>
> }
>
> $result[] = $suggestions;
>
> return json_encode($result);
>
>
> ?tx_tl24_pi1[Controller]=suggest&tx_tl24_pi1[Action]=eidCompany
Can you try
?tx_tl24_pi1[controller]=Suggest&tx_tl24_pi1[action]=eidCompany
AFAIK the controller should be uppercase, but the array keys
("controller", "action") lowercase.
Cheers,
Christian
More information about the TYPO3-project-typo3v4mvc
mailing list