V
V
vladimir percov2016-11-05 13:32:03
PHP
vladimir percov, 2016-11-05 13:32:03

MODx Revo not seeing POST parameters?

Good afternoon!
When creating a *.php file in the root where MODx Revo is installed
print_r($_POST);
produces emptiness - Array().
At the same time, file_get_contents('php://input') reads everything perfectly. I think this is some kind of trick with the replacement of the $_POST array in MODx. How to access the parameters?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zooks, 2016-11-05
@Arhimed96

MODX has no effect on PHP files that are in the same directory as it.
So turn on the display of errors or read the logs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question