Questions tagged [slim-3]

Slim 3 is the successor to Slim 2, a micro framework for PHP.

Resources

Related tags


For the Ruby template engine use instead.

414 questions
-1
votes
1 answer

PDO does not throw exception

I know this question has been there many times, but no answer works for me. My PDO just doesn't throw any error... or something catch the error before me. I'm quite new to php, and I hate to not understand simple things. Here's my initialization…
Martin
  • 11,087
  • 6
  • 60
  • 99
-1
votes
1 answer

how to make a file using fopen() fwrite() in slim 3

i have an application where i upload a xml file then it is coverted into json where the json file is being created inside the controller using fopen(), fwrite() php functions. my problem is i keep having a problem on making the json file. i dont…
Emil Kitua
  • 39
  • 7
-1
votes
1 answer

Slim 3 response withRedirect

I'm trying out slim responses object and redirect feature, i have routes and controllers like this : routes : $app->get('/', 'index:index')->setName('index'); in my controller i have this line : return…
jsn alf
  • 43
  • 1
  • 9
-1
votes
1 answer

How to extract CouchDB cookie from Httpful response object in PHP?

I try to authenticate a user via a RESTful API in combination with CouchDB and Httpful. The client sends the credentials of the user to my server and the server forwards them to the CouchDB server. When I var_dump the response, I can see that the…
Magiranu
  • 289
  • 3
  • 21
-1
votes
1 answer

How to set multiple header value in Slim Framework 3 to a web service with api key?

I'm new in Slim Framework 3. I have a problem to accessing web service that has a Api Key header value. I have had a Api Key value and wanna access the web service to get JSON data. Here is my slim get method code: $app->get('/getbooking/{id}',…
Agung
  • 43
  • 6
-1
votes
1 answer

response->getBody() is empty in slim3 php framework

I'm having trouble with this slim3 php code. On function createErrorReponse function, $response->getBody() is null or empty. Php complains the following error below. As you can see the getBody() size is empty and hence write won't work on it. The…
Prasana Ramesh
  • 87
  • 2
  • 10
-2
votes
2 answers

does Slim framework have URL encoded annotation for POST method?

I'm developing a web RESTful API using slim framework of php.I want to know how do I add some annotation type thing on POST method so that it can behave as URL encoded method.Please help me in this regard.Advance thanks.
Asad Yasin
  • 93
  • 9
-2
votes
1 answer

php slim framework response wait issue

I developed an API using a the Slim framework. On JavaScript side two APIs are called asynchronously. One call is taking too much time and one takes less. But the response is coming after the one that takes long ends. Is any issue related slim…
Anish Chandran
  • 427
  • 4
  • 17
-2
votes
1 answer

How can i create middleware on Slim Framework 3?

I read the documentation here about creating middleware. But which folder or file i must be create it? Documentation is not contain this information. Under the src folder i have middleware.php. For example i want to get post information like…
devugur
  • 945
  • 1
  • 16
  • 23
1 2 3
27
28