-
☆ A M B ☆
- 24,524 Posts
You need to have your code include() the manager/includes/config.inc.php file, at the least. You can include the manager/includes/document_parser.class.inc.php file too, if you want to use the modx class functions.
Susan, You told me to include config.inc.php and document_parser...
I take a look to index-ajax.php, and notify that config.inc.php is already included, so I don’t need ir anymore in my php page... what I need is to use modx object.
-
☆ A M B ☆
- 24,524 Posts
The only way to get the $modx object is to include the parser and instantiate a new $modx object, just like the main index.php file does.
-
☆ A M B ☆
- 24,524 Posts
I’ve done it when using Ajax, and I’ve also just loaded up the config.inc.php file and used the basic PHP mysql calls. I couldn’t notice any difference, but then I’ve yet do this on any busy sites.