Hello, I need to get some fields of the resource through the api.
I use modx revolution 2.1.1.
Snippet now I have the simplest, consists only of the function
echo $var=$modx->getDocument(50); //It must return an array
Record with the id of course there is, it is published.
But it does not output anything, it returns a white page.
In the logs, such records
92.112.28.95 - - [23/Jul/2011:15:18:59 +0400] "POST /connectors/element/propertyset.php HTTP/1.1" 200 535 "http://199.org.ua/manager/index.php?a=16&id=39" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 WebMoney Advisor"
92.112.28.95 - - [23/Jul/2011:15:18:59 +0400] "POST /connectors/element/propertyset.php HTTP/1.1" 200 614 "http://199.org.ua/manager/index.php?a=16&id=39" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1 WebMoney Advisor"
What prevents the display array with the data resource?