typo3 - BE AJAX request delivers empty repository -
i want build extension reading repository extension , delivers data csv/xsl/xslx without saving on server. e.g outputs data in blank window modified headers.
the ajax request fired with
$typo3_conf_vars['be']['ajax']['tx_myext::ajaxid'] = 'filename:object->method';
the repository if called backend work fine too.
public function ajaxaction() { ... $this->extrepository =& t3lib_div::makeinstance('tx_mysecondext_domain_repository_datarepository'); ... }
but when called domain.tld/typo3/ajax.php?ajaxid=tx_myext::ajaxid
doesnt find tx_mysecondext_domain_repository_datarepository
if call repository of second repository findall()
methode directly ajax. return null.
also when setting querysettings hand
public function findallexport() { $query = $this->createquery(); $query->getquerysettings()->setrespectstoragepage(false); return $query->execute(); }
also fyi on 4.5
edit:
calling repository objectmanager doesn't work too
$objectmanager = t3lib_div::makeinstance('tx_extbase_object_objectmanager'); $this->extrepository = $objectmanager->get('tx_mysecondext_domain_repository_datarepository');
did make sure other extension loaded before own extension loaded? @ localconf.php
. need specify dependencies in ext_emconf.php
before install extension.
also make sure have added both extension's configurations static includes of typoscript template.
Comments
Post a Comment