Slim framework not working

Started on the old forum in June 2015 · view the original in the archive · old links redirect here

#slim-framework-api-reques

No replies · 72 views · started 11 years ago · 1 min read

arbind004 Junior · 13 posts #1

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(); ?>

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close