[TYPO3-mvc] Little Problem with Extbase Extension in Typo3 6.0
Stefan Kruse
besucher80 at gmx.de
Tue Jun 11 12:24:59 CEST 2013
Hi, i write an Extension with Typo3 6.0 and Extbase 6.0. I configure a
plugin in the ext_localconf like:
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'SK.' . $_EXTKEY,
'Pi1',
array(
'Suggest' => 'eidProduct, eidCompany,
eidContact', // Suggest Controller for search suggest like products,
companies and contact
'Dummy' => 'list, show, new, create, edit,
update, delete', // Dummy Controller for testing the TYPO3 6.0 namespace
syntax and other features
),
// non-cacheable actions
array(
'Suggest' => 'eidProduct, eidCompany,
eidContact',
)
);
In the Suggest->eidProduct Method I have this content:
$subcategories = $this->subcategoryRepository->findAll();
$result = array();
$suggestions = array();
$result[] = $this->pivars['query'];
foreach($subcategories as $subcategory) {
var_dump($subcategory->getName());
$suggestions[] = $subcategory->getName();
}
$result[] = $suggestions;
return json_encode($result);
you see, easy stuff. But when I call the page, sometimes I get results and
sometimes is the result null.
The next problem is, that I have 3 method in my suggest controller but when
I type
?tx_tl24_pi1[Controller]=suggest&tx_tl24_pi1[Action]=eidCompany
I only get the first method -> eidProduct. Ever and ever.
Has anybody maybe a idée what this could be? Maybe I make something wrong? I
know, the infos a rare, but I dont know what to say more J
I hope so somebody has a tipp.
Thanks a lot Stefan
More information about the TYPO3-project-typo3v4mvc
mailing list