-
MODX Staff
- 10,725 Posts
I assume since you are trying to instantiate DocumentParser that you are using Evolution. This is much easier in Revolution (2.0.0, currently in beta), but see index.php for how it instantiates the DocumentParser in Evolution.
Yes I use Evolution (1.0.2).
After a look into the index file I saw, that the DocumentParser object needs the included config file before it can be created.
In my snippet I’m trying to read values from the $modx->config. It seemed as if this is only possible if the $modx->executeParser() was executed first. But that execution forced my testframework to end up in an endless-loop.
Now i just found the $modx->getSettings() method. After this call I can use my Testframework as usual.