Hi, I want to do that because I’m using ajax request.
See, in my snippet i have a button that calls a javascript function which is in fact my "ajax" function but this function referes to another php file, the one that will return what i want in the div I want.
But in this file I can’t use for instance
$modx->getFullTableName('web_users');
and i’m forced to write a mysql query to retreive the info I want.
I tried to include the parser class file and to declare $modx global variable in my ajax php file but still display this error message:
Fatal error: Call to a member function getFullTableName() on a non-object in
does anyone have an idea how to use the parser outside modx?