[TYPO3-dev] Resolving BACK_PATH using BE ajax via the ajax.php dispatcher.
masi-no at spam-typo3.org
Fri Apr 10 11:25:47 CEST 2009
Nikolas Hagelstein schrieb:
>> use the ajax.php with registered handle. Look eg in opendocs how it's
> Well actually I am looking for a way to check access privileges within
> the ajax responder script.
> Placing something like:
> require_once(t3lib_extMgm::extPath('xyz) . '/mod1/conf.php');
> Into the constructer of the registered class/functions seems a little
> odd to me.
Then add it directly to the handler method you have registered or put it
into some init method. Or do the check in the constructor and set a
status property to be checked by the handler, which tells if the access
has been granted or not.
More information about the TYPO3-dev