Hi there,
I’m very new to MODx but got it running in few minutes. I played around a little in the manager and in the frontend and I’m getting enthusiastic more and more...
So I tryed to switch with some code from an older CMS to MODx - I’ve many files and classes to be overviewed and partially rewritten to fit in the MODx environment. As is the rule many things wont work and I’m confronted with many errors and messages which are completely new to me.
Anyway, now I’m looking for a debugging option and found something like this:
modxDebugConsole which seems to fit my needs but I’m not quite sure either to use this class nor how... Is there any documentation about it? An example?
I already took a look at Ditto 2 which uses and extends modxDebugConsole but I’m looking for an
simple example to start up using debbuging.
I tryed this code in my snippet but without success:
include($adiconfig['modx_debug_class']); // path to 'debug/modxDebugConsole.class.php'
include($adiconfig['debug_templates']); // path to 'debug/debug.templates.php'
$mydebug = new modxDebugConsole($dbg_templates);
$tabs = array();
$tabs['info'] = 'Info test text';
$tabs['more'] = 'More test text';
$mydebug->render($tabs, 'kind of debug msg', 'some base url'); //still not sure what parameters to pass, seems to be like this: 1=array, 2=string, 3=baseurl ?
The result when I reload the Frontend is the normal page...
Would appreciate ANY help!!
Thanks,
Greets Mike