i am creating REST API for android application so i useing slim framework i have issue with json form payloader reuqest to show i have using this code to getting the json form request but i am getting empty result.
<?php require 'Slim/Slim.php'; \Slim\Slim::registerAutoloader(); $app = new \Slim\Slim(); $app->post('/register', function () use ($app) { //$paramValue = $app->request->params('name'); $name = $app->request->post('name'); echo "Register Ok $name"; }); $app->run(); ?>Slim framework not working
Started on the old forum in June 2015 · view the original in the archive · old links redirect here