You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The postData() method only looks at $_POST which does not cover the data from a JSON request body:
public static function postData($item = null, $default = null)
{
return \Leaf\Anchor::deepGet($_POST, $item) ?? $default;
}
Interestingly the get() method does. And rawData() also. This might be confusing for someone not sending form data to the server as it is not intuitive.
The text was updated successfully, but these errors were encountered:
The
postData()
method only looks at$_POST
which does not cover the data from a JSON request body:Interestingly the
get()
method does. AndrawData()
also. This might be confusing for someone not sending form data to the server as it is not intuitive.The text was updated successfully, but these errors were encountered: