U
U
urmi tilek uulu2015-12-04 16:13:06
PHP
urmi tilek uulu, 2015-12-04 16:13:06

How to get POST, GET data in fat free?

Hello good people!
Recently started using php framework fat-free and faced this kind of issue for me.

$f3 = require 'lib/base.php';
$f3->route ( 'POST /', function () {
  echo 'test1: ' . $_POST['test'];
  echo 'test2: ' . $f3->post('POST.test');
  echo 'test3: ' . $f3->post('PARAMS.test');
} );
$f3->run ();

The first one works.
The other two methods don't work.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question