[TYPO3-core] RFC: #15513: Log ExtDirect Exceptions in DebugConsole
Steffen Kamper
info at sk-typo3.de
Mon Aug 23 16:30:34 CEST 2010
Hi,
Committed to trunk rev 8648
I took the right to commit as there are noone work with ExtDirect yet to
make a complete review. As this is only developer relevant it doesn't harm.
Short explanation:
* client API changed, when use ExtDirect you have to include these parts
in your script:
// Load JavaScript:
$pageRenderer->addJsFile($this->doc->backPath .
'ajax.php?ajaxID=ExtDirect::getAPI&namespace=[YOUR.NAMESPACE]',
NULL,
FALSE
);
$pageRenderer->addExtDirectCode();
That's all. Now exceptions in ExtDirect calls are catched and displayed
in debug console.
Further you can now use debug in these calls (This is awesome, wasn't
possible before!), just use this for debug output in console:
t3lib_extjs_ExtDirectDebug::debug($anyArrayOrStringOrObject);
Now the time is right to start developing your app with ExtDirect!
vg Steffen
More information about the TYPO3-team-core
mailing list