Is it possible to set $_POST data before calling another PHP method?
I'm trying to call a method from another PHP class. That method do not accept any arguments, it only takes $_POST data. So, my question is: is it possible to do something like this?
$_POST['name'] = 'John';
$user = new User();
$user->create();
The method "create" from the class "User" gets the $_POST['name'] data to create the record. Does it work?