在Typo3 6.2.6中使用AJAX的后端模块?

时间:2014-12-04 07:45:39

标签: typo3 extbase typo3-6.2.x

我正在开发一个包含FE扩展和BE模块的扩展。请参阅下面的BE模块

class Tx_XXXXXXX_Controller_PitslayersliderController extends Tx_Extbase_MVC_Controller_ActionController {

public function listAction(){

}
public function getdataAction($params = array(), \TYPO3\CMS\Core\Http\AjaxRequestHandler &$ajaxObj = NULL) {
 //This is an AJAX Call Action and I am rendering all my contents through
 //$this->view->assign();
 //$this->view->render();
 //Everything was working fine till 6.1 . But from 6.2 onwards this is not working.

}

}

ext_tables.php

\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler (
    'xxxxxxxxxController::getdata',
    'Tx_xxxxxxxxxx_Controller_xxxxxxxController->getdataAction'
);

php_error_log出错     PHP Fatal error: Call to a member function assign() on a non-object in

任何人都可以帮我解决这个问题吗?

0 个答案:

没有答案