contao/core — Issue #3815: AJAX doesn't work in custom back end modules
Author: qzminski
Created: 2012-01-15 13:19:25+00:00
State: open

It is not possible to call an AJAX request in the custom back end module (e.g. Tasks). The executePreActions HOOK might work, but I would like to use executePostActions since I need to return a value. Unfortunately, the post actions require a DataContainer object which is not being initialized in custom modules.
```
// Backend.php
if ($_POST && $this->Environment->isAjaxRequest)
{
$this->objAjax->executePostActions($dc);
}

// Ajax.php
public function executePostActions(DataContainer $dc) {}
```
Or am I missing something?