I'm newbie with TYPO3. I'm facing with this issue, can not get data from database.
I have a plugin with this configure
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'Locations.' . $_EXTKEY,
'Locationsfe',
array(
'Location' => 'list, show, showprice, listprice, listcategory, scan,sharedoffice',
'Category' => 'list, show',
'Pricing' => 'list, show, showprice, listprice, scan, test',
'Template' => 'list, show',
),
// non-cacheable actions
array(
'Location' => '',
'Category' => '',
'Pricing' => 'test',
'Template' => '',
)
);
And in my controller I have this function
public function testAction() {
// Get current language
$currentLanguage = $GLOBALS['TSFE']->sys_language_uid;
$pricing = $this->pricingRepository->findAll();
print_r($pricing);
die('Passed');
}
I also added this line to Constants
plugin.tx_locations.persistence.storagePid = 164
I also created a typo Script
plugin.tx_locations {
view {
templateRootPath = {$plugin.tx_locations.view.templateRootPath}
partialRootPath = {$plugin.tx_locations.view.partialRootPath}
layoutRootPath = {$plugin.tx_locations.view.layoutRootPath}
}
persistence {
storagePid = 164
}
features {
# uncomment the following line to enable the new Property Mapper.
# rewrittenPropertyMapper = 1
}
}
But all of above does not work. Just white page return.
I also read this extbase repository findAll() returns result null
So, what happen? I don't know why. Can you help me to figure it out please.
Thanks in advance.