Hi, everyone! Sorry for worry, but here is another question: I have a task to making a parser, which will parse catalog structure, and then insert it into the database as modx document. With parser itself is no trouble, but with inserting... I try to use MODx Revolution, and there is no understandable documentation about "how to use", so I searched info and copy-pasted it into my code:
require_once('core/components/docbuilder/moddocumentbuilder.class.inc.php');
$doc=new modDocumentBuilder();
Note, that this code in the EXTERNAL php file (for launch it via CRON)
Here is error message: Fatal error: Call to a member function load() on a non-object in core\components\docbuilder\moddocumentbuilder.class.inc.php on line 158 (File on attachment). Where I was wrong?
Thanks in advance!
P.S.: Sorry for my English...