Equivalent to file_get_contents('php://input')

429 views
Skip to first unread message

lbj

unread,
Jun 22, 2016, 5:34:55 PM6/22/16
to Fat-Free Framework
Hi

I am getting a json POST from a Trello webhook. I decode it like this :

$data = json_decode(file_get_contents('php://input'), true);

My first thought was to replace file_get_contents('php://input') with
$f3->get('POST') but this returns an empty result. Is there a f3
equivalent ?

larsbrandi

bcosca

unread,
Jun 22, 2016, 5:52:45 PM6/22/16
to Fat-Free Framework
$data=$f3->get('BODY');
Reply all
Reply to author
Forward
0 new messages